Repository navigation
ci: release, preview and cut-prerelease workflows - #488
Merged
gusfcarvalho merged 2 commits intoOct 9, 2026
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
gusfcarvalho
approved these changes
Oct 9, 2026
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.
Task: W1-S2-T03
Part 3 of 3 of the api onboarding stack (CCF Release Automation Design). Stacked on #487.
Moves the image publishing to the shared release workflows, pinned at the v1.5.0 release commit (
899dbe5).Removes:
.github/workflows/publish.yml. No other workflow called it.Changes
release.yml: callsrelease-go-image.ymlonrelease: publishedand publishesghcr.io/compliance-framework/api(one image:Dockerfile, context.).preview.yml: callspreview.ymlwith kindimageandon-main: true. The concurrency group is keyed by PR number, as on mock-api.cut-prerelease.yml:workflow_dispatchcaller ofcut-prerelease.yml, which tags the next rc of the version the open release-please PR proposes.Dockerfile(production stage only): declaresARG VERSION=devand restores the OCI labels the old metadata-action step added (details below).AGENTS.md: the release paragraph described the removed publish workflow; it now describes release-please,release.yml,preview.ymlandcut-prerelease.Published artifacts: old vs new
publish.yml)release.yml+preview.yml)ghcr.io/compliance-framework/apiDockerfile, last stage (production)linux/amd64,linux/arm64(QEMU on one runner)vX.Y.ZX.Y.Z,X.Y,X,latest,sha-<7>X.Y.Z,X.Y,X,latestvX.Y.Z-rcNX.Y.Z-rcN,sha-<7>X.Y.Z-rcNmainmain,latest,sha-<7>main,sha-<7>(latestno longer moves)seedseed,sha-<7>pr-<number>when the PR has thepreviewlabelVERSION=<version>only (X.Y.Z,X.Y.Z-rcN,main-<sha7>,pr-<n>-<sha7>)createdis no longer setNotes:
sha-<7>tag pointed at the tag build of the release commit. That commit is onmain, so the new main preview still publishes asha-<7>for it, from the main build.0,0.21,0.21.0andlatestshare one digest, so the floatingXtag the new flow keeps was already published.ARG VERSION, so without the change above the newVERSIONarg would be ignored (with a build warning). It is now used only for theorg.opencontainers.image.versionlabel. The binary is built exactly as before.Open questions for reviewers
seedbranch. That branch no longer exists, and GHCR has noseedtag. Is aseedimage still needed? This PR drops the trigger.Before and after merging (human)
releaseenvironment, which repo-settings creates (W1-S2-PRE, per-repo order).cut-prerelease; nobody pushesv*tags by hand.Verified
899dbe5(v1.5.0), has a top-levelpermissionsblock and grantspackages: writeonly to the publishing job.internal/release(ReleaseTags,PreviewTags) at v1.5.0.0.21.0image config (platforms, labels, entrypoint) checked against the table above.🤖 Generated with Claude Code