Conversation
- Replace deploy.yml placeholder with GHCR build+push workflow - Create docker-compose.prod.yml with Watchtower auto-updates - Add Docker build smoke test to CI pipeline - Watchtower uses label-based opt-in (only GHCR-managed services) [Agent: Main Assistant] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Details
Deploy workflow builds and pushes 3 images to
ghcr.io/mriechers/cardigan-{api,web,worker}on merge to main. Uses deploy-specific GHA cache scopes to avoid collisions with CI cache.Production compose mirrors the dev compose but uses
image:instead ofbuild:. Watchtower polls GHCR every 5 minutes and only updates containers labeledwatchtower.enable=true(api, web, worker — not tunnel or third-party images).Docker smoke test builds all 3 Dockerfiles with
push: falseon PRs to main and pushes to dev, ensuring Dockerfile changes don't break the build.Test plan
docker compose -f docker-compose.prod.yml config🤖 Generated with Claude Code