ci(sandbox): auto-bump studio-sandbox image in deco-apps-cd (stg)#4146
Open
viktormarinho wants to merge 1 commit into
Open
ci(sandbox): auto-bump studio-sandbox image in deco-apps-cd (stg)#4146viktormarinho wants to merge 1 commit into
viktormarinho wants to merge 1 commit into
Conversation
Mirror release-mesh's GitOps bump for the sandbox image: when a new studio-sandbox image is built+pushed, fire a generic `image-bump` repository_dispatch to decocms/deco-apps-cd (handled by its own bump-image.yml, which self-commits the tag). Only studio-sandbox-stg is bumped — it auto-syncs, so the new image rolls and gets tested automatically; prod stays a deliberate promotion (it's auto-sync, so auto-bumping it would roll prod on every release — extend `files` only after gating studio-sandbox-prod with syncPolicy.automated: null). Reuses DEPLOY_REPO_TOKEN; no-ops (never reds the release) if absent. Co-Authored-By: Claude Opus 4.8 (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.
What is this contribution about?
The
studio-sandboximage builds automatically on merge (release-studio-sandbox.yaml), but — unlike the mesh image — nothing bumps its tag indecocms/deco-apps-cd, so the deployed tag drifts (currently pinned1.2.3while the repo is at1.3.2) and sandbox changes never roll out until someone edits the CD repo by hand. This adds the missing GitOps step, mirroringrelease-mesh: when a new image is pushed, fire a genericimage-bumprepository_dispatchtodeco-apps-cd(handled by its existingbump-image.yml, which self-commits the tag — no CD-repo change needed). Onlystudio-sandbox-stgis bumped (it auto-syncs → rolls + tests automatically);studio-sandbox-prodstays a deliberate manual promotion because it's auto-sync by default, so auto-bumping it would roll prod on every release.How to Test
packages/sandbox/**change with a version bump,release-studio-sandboxbuilds the image, then thebump-deco-apps-cdjob dispatchesimage-bumptodeco-apps-cd.deco-apps-cd'sbump-image.ymlcommits the new tag intoapps/studio-sandbox-stg/values.yaml; ArgoCD (stg auto-sync) rolls it.pushed == 'true'gate).Migration Notes
Needs the existing
DEPLOY_REPO_TOKENsecret (already used byrelease-mesh); absent → the job no-ops. To later auto-bump prod too, addapps/studio-sandbox-prod/values.yamltofilesafter settingsyncPolicy.automated: nullonstudio-sandbox-prodin deco-apps-cd (mirroringdeco-studio).Review Checklist
Summary by cubic
Automatically bumps the
studio-sandboximage tag indecocms/deco-apps-cdfor staging when a new image is built, keeping stg deploys in sync without manual edits. Mirrors the mesh flow; production stays a manual promotion.New Features
bump-deco-apps-cdjob torelease-studio-sandbox.yamlthat dispatchesimage-bumptodecocms/deco-apps-cdviapeter-evans/repository-dispatch@v3.apps/studio-sandbox-stg/values.yaml; prod is not auto-bumped.DEPLOY_REPO_TOKENis missing.Migration
DEPLOY_REPO_TOKEN. To later include prod, disable its auto-sync and addapps/studio-sandbox-prod/values.yamlto the dispatch payload.Written for commit 34ef676. Summary will update on new commits.