Repository navigation
ci: split final release into publish and promote phases - #462
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR splits the final release flow into two distinct phases: publish (current release.yml final run, producing versioned artifacts + a draft GitHub Release) and promote (new human-gated promote-release.yml run after downstream smoke-test, which updates :latest, undrafts the GitHub Release, and merges the release PR).
Changes:
- Add
promote-release.ymlworkflow to validate prerequisites, promote:latest, publish the draft release, and merge the release PR. - Update
release.ymlto stop updating:latestduring final publish and to direct operators tojust promote-releaseafter downstream verification. - Add
promote-releaseJust recipes + regenerate docs and add tests covering the new recipe/workflow dispatch behavior.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/promote-release.yml |
New promote workflow: validates artifacts + downstream gate, then updates :latest, publishes draft release, and merges release PR. |
.github/workflows/release.yml |
Removes :latest manifest creation/verification from publish phase and updates operator messaging to use promote phase. |
justfile.gh |
Adds promote-release recipe to dispatch the new workflow (defaults to release/{{ version }} ref). |
assets/workspace/.devcontainer/justfile.gh |
Mirrors the new promote-release recipe into the workspace template. |
justfile |
Updates release-management documentation block to include the new promote step. |
tests/bats/just.bats |
Adds BATS assertion that promote-release defaults to the release branch ref. |
tests/test_integration.py |
Adds integration assertions that the promote recipe exists and dispatches promote-release.yml. |
README.md |
Regenerated recipe listing including promote-release. |
CONTRIBUTE.md |
Regenerated recipe listing including promote-release. |
CHANGELOG.md |
Adds unreleased entry documenting the publish/promote split. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the changelog entry in the workspace template. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Splits the final release into two phases: publish (existing
release.ymlfinal run) and promote (new human-gated workflow after downstream smoke-test). Finalrelease.ymlno longer updates GHCR:latestor publishes the draft GitHub Release from the UI path alone; operators runjust promote-releaseafterdevcontainer-smoke-testhas published its final release for the same tag. The promote workflow validates prerequisites, updates:latest, undrafts the GitHub Release, and merges the release PR tomain.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/promote-release.yml— New workflow: validate version, GHCR images and cosign, draft release on this repo, downstream final release ondevcontainer-smoke-test; jobpromotecreates:latestmanifest and publishes the draft release; jobmergemergesrelease/X.Y.ZPR tomain..github/workflows/release.yml— Remove:latestmanifest create/verify for final releases; document smoke-test →just promote-releaseoperator path; adjust summary and draft-release messaging.justfile.gh/assets/workspace/.devcontainer/justfile.gh— Addpromote-releaserecipe dispatchingpromote-release.ymlfromrelease/{{ version }}by default.justfile— Update release-management comment block for the seven-step flow including promote.CHANGELOG.md/assets/workspace/.devcontainer/CHANGELOG.md— Unreleased entry for [FEATURE] Split final release into publish and promote phases #456.README.md/CONTRIBUTE.md— Regenerated recipe listing includingpromote-release.tests/bats/just.bats— BATS coverage forpromote-releasedefault ref injustfile.gh.tests/test_integration.py— Integration assertions forpromote-releaserecipe andpromote-release.ymldispatch.Changelog Entry
Testing
just test)Manual Testing Details
N/A — workflow behavior is validated in CI; operator flow documented in
justfileand workflow comments.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #456