Repository navigation
ci: deploy backend images pinned by manifest digest - #411
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ba103e3d54
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| VERSION: ${{ steps.meta.outputs.version }} | ||
| run: | | ||
| set -euo pipefail | ||
| digest=$(docker buildx imagetools inspect "$IMAGE:$VERSION" --format '{{json .Manifest}}' | jq -r '.digest') |
There was a problem hiding this comment.
Capture the digest before resolving the mutable tag
When two pushes to the same deploy branch overlap, this re-resolves $VERSION—the branch tag both runs push—after the current manifest was created, so the other run can move the tag first and this run may dispatch the other commit’s digest (or a mixed set across the three images). Capture the digest from this invocation of imagetools create instead; Docker documents --metadata-file for returning the create result’s digest (Docker CLI reference).
Useful? React with 👍 / 👎.
shaimage tag.merge-imageoutputs the multi-arch manifest digest; merge job is unrolled so each image's digest is exposed as a job output.{"digests": {...}}instead of{"tag": ...}.Requires OpenShock/kubernetes-cluster-gitops#9 to be merged at the same time.