Repository navigation
Deploy pulls fresh images; stable image IDs (checklist 2.3) - #42
Merged
Merged
Conversation
…cklist 2.3) compose pull --ignore-buildable, build --pull, then up -d. PULL=0 skips the pulls. New check: each container must run the image its name points to now, or the deploy fails.
… for the deploy check)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist item 2.3: every image uses a moving tag (postgres:18, tailscale:stable, dotnet sdk/aspnet:10.0, node:24-slim, caddy:2-alpine), and ops/deploy.sh never asked the registries for newer ones, so patches only arrived when the build cache happened to drop a base image.
Changes
ops/deploy.sh:compose pull --ignore-buildable, thenbuild --pull, thenup -d.PULL=0 ops/deploy.shskips the pulls (registry outage).ops/deploy.sh: new check that every container runs the image its name points to now; a container left on an old image fails the deploy instead of hiding behind OK.docker-compose.prod.yml:provenance: falsefor api and caddy. The attestation records the build time, so every build got a new image ID with identical content; Compose (rightly) didn't recreate, which left test's containers on untagged IDs and would make the new check fail on every deploy. The images never leave homeserver.Tested on studystack-test (Nov 20)
OK deployed chore/deploy-pull at 70ed312; sign-in, stack, Markdown cards, edit and undo, sign-out all worked.Production's first deploy
Expect one
FAILED: api runs ... (not recreated ...): its last image carried an attestation. One-time cure, then deploy again:sudo docker compose up -d --force-recreate --no-deps api && ops/deploy.sh(caddy too if it's named; it is usually recreated anyway along with tailscale).