Repository navigation
Description
Description
Split the current single release.yml final-release flow into two separate workflows: a publish phase that builds and pushes versioned artifacts, and a promote phase that makes them the official "latest" after manual verification.
Problem Statement
The current release.yml performs all final-release actions in a single workflow run: finalize CHANGELOG, build images, push X.Y.Z and latest tags to GHCR, create a draft GitHub Release, and dispatch smoke tests. This means:
- If a defect is discovered after publish (e.g. the TBD bug in 0.3.1, see [BUG] Release 0.3.1 CHANGELOG date not set -- TBD persisted through publish and merge #455), the
latesttag already points to the broken image -- there is no inspection window. - The draft GitHub Release is created before anyone can verify the published artifacts actually work.
- Merging the release branch to
mainis fully manual (PR merge) with no automation gate linking it to a successful release.
A two-phase approach provides a human checkpoint between "artifacts exist in the registry" and "artifacts are promoted to production."
Proposed Solution
Phase 1 -- Publish (release.yml with release-kind=final, triggered by just finalize-release):
- Validate (existing RC gate, CHANGELOG, PR, CI checks)
- Finalize CHANGELOG (set date, regenerate docs, commit)
- Sync issues
- Build and test images from finalize SHA
- Push images to GHCR as
X.Y.Z(per-arch + multi-arch manifest, nolatesttag) - Sign and attest (cosign, SBOM, provenance)
- Create draft GitHub Release with finalized notes
- Dispatch smoke test to downstream
Phase 2 -- Promote (new workflow, e.g. promote-release.yml, triggered by just promote-release or manual dispatch after inspection):
- Validate that GHCR
X.Y.Zimages exist and are signed - Validate that the draft GitHub Release for
X.Y.Zexists - Validate that downstream smoke-test passed (pre-release exists for the release tag)
- Update GHCR
latesttag to point at theX.Y.Zmulti-arch manifest - Publish the draft GitHub Release (set non-draft)
- Merge the release PR into
main(via API merge or auto-merge enablement)
Alternatives Considered
- Keep single workflow with a manual approval gate (environment protection rule): Would work but is less flexible -- you can't re-run just the promote step, and the workflow run stays "in progress" during the wait, consuming CI minutes.
- Use a GitHub Actions
workflow_dispatchinput to toggle publish vs promote mode: Possible but overloads the single workflow with too many conditional paths; two separate workflows are easier to reason about and independently retry.
Impact
- Operators get a verification window between image publication and promotion to
latest - The
latestGHCR tag only moves when a human has confirmed the release is good - GitHub Release publication is decoupled from artifact creation
- Release branch merge to
mainis automated as part of the promote phase, reducing manual steps - Backward compatible: the publish phase is a strict subset of the current flow; promote is additive
Additional Context
Related to #455 (TBD bug in release 0.3.1), where the latest tag and GitHub Release were published before anyone could detect that the CHANGELOG date was never set. A two-phase release would have caught this during the inspection window.
Current architecture in .github/workflows/release.yml (lines 1031-1040) unconditionally updates latest during publish for dual-arch final releases. The promote workflow would move this logic into its own job with prerequisite checks.
Changelog Category
Changed
- TDD compliance (see .cursor/rules/tdd.mdc)
Activity
ci(ci): add promote-release workflow
ci(ci): defer latest and release publish to promote workflow
feat(ci): add promote-release just recipe
test(ci): add promote-release recipe tests
docs(ci): update release process and changelog for promote flow
fix(ci): tighten cosign identity regexp to release workflow on releas…
docs(ci): fix tag format in release process comment
ci: split final release into publish and promote phases (#462)
test(ci): align release PR body bats with awk changelog extract
ci: downstream promote-release, GHCR cleanup, and RC prune (#472)
chore: release 0.3.2 (#477)
chore: release 0.3.2 (#119)
chore: release 0.3.2 (#122)
chore: release 0.3.2 (#125)
chore: release 0.3.2 (#128)
chore: release 0.3.2 (#486)