Mirror operator image to Gamewarden registry on tag push#458
Conversation
After pushing the operator image to Docker Hub, also publish it to the Gamewarden Harbor registry. Uses `docker buildx imagetools create` to copy the manifest server-side, preserving the source digest and any multi-arch manifests without pulling layers to the runner. Co-authored-by: Cursor <cursoragent@cursor.com>
📝 WalkthroughWalkthroughThe continuous delivery workflow adds authentication to the Gamewarden Harbor registry and mirrors the built operator Docker image from the Mattermost registry to the Gamewarden registry on every tag push. ChangesImage Mirroring to Gamewarden Registry
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Review rate limit: 4/5 reviews remaining, refill in 12 minutes. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/cd.yml:
- Around line 47-52: The workflow currently mirrors a mutable tag (in job
cd/push-operator-to-gamewarden) which can drift; resolve the source image digest
first using docker buildx imagetools inspect and the correct template field
.Manifest.Digest (capture into a variable like SRC_DIGEST), then mirror using
the stable repo@sha256:... reference instead of the tag so the push to
registry.gamewarden.io/mattermost/mattermost-operator uses the resolved digest;
ensure the inspect command uses --format '{{.Manifest.Digest}}' (not
'{{.Digest}}') and replace the source argument in the imagetools create step
with the repo@${SRC_DIGEST} form.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: fc6affad-1f46-4426-8a00-a7841b688d79
📒 Files selected for processing (1)
.github/workflows/cd.yml
|
@coderabbitai resolve |
✅ Actions performedComments resolved and changes approved. |
Summary
After pushing the operator image to Docker Hub, also publish it to the Gamewarden Harbor registry.
Ticket Link
N/A
Release Note