Skip to content

ci: split final release into publish and promote phases - #462

Merged
c-vigo merged 7 commits into
devfrom
feature/456-split-final-release-publish-promote
Mar 27, 2026
Merged

c-vigo merged 7 commits into
devfrom
feature/456-split-final-release-publish-promote

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Description

Splits the final release into two phases: publish (existing release.yml final run) and promote (new human-gated workflow after downstream smoke-test). Final release.yml no longer updates GHCR :latest or publishes the draft GitHub Release from the UI path alone; operators run just promote-release after devcontainer-smoke-test has published its final release for the same tag. The promote workflow validates prerequisites, updates :latest, undrafts the GitHub Release, and merges the release PR to main.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .github/workflows/promote-release.yml — New workflow: validate version, GHCR images and cosign, draft release on this repo, downstream final release on devcontainer-smoke-test; job promote creates :latest manifest and publishes the draft release; job merge merges release/X.Y.Z PR to main.
  • .github/workflows/release.yml — Remove :latest manifest create/verify for final releases; document smoke-test → just promote-release operator path; adjust summary and draft-release messaging.
  • justfile.gh / assets/workspace/.devcontainer/justfile.gh — Add promote-release recipe dispatching promote-release.yml from release/{{ 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 including promote-release.
  • tests/bats/just.bats — BATS coverage for promote-release default ref in justfile.gh.
  • tests/test_integration.py — Integration assertions for promote-release recipe and promote-release.yml dispatch.

Changelog Entry

### Changed

- **Split final release into publish and promote phases** ([#456](https://github.com/vig-os/devcontainer/issues/456))
  - Final `release.yml` publishes versioned GHCR tags and a draft GitHub Release but no longer updates `:latest`
  - New `promote-release.yml` runs after downstream smoke-test publishes its final release: updates `:latest`, publishes the draft release, merges the release PR to `main`
  - Add `just promote-release` in `justfile.gh` (and workspace template copy)

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A — workflow behavior is validated in CI; operator flow documented in justfile and workflow comments.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #456

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml workflow to validate prerequisites, promote :latest, publish the draft release, and merge the release PR.
  • Update release.yml to stop updating :latest during final publish and to direct operators to just promote-release after downstream verification.
  • Add promote-release Just 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.

Comment thread .github/workflows/promote-release.yml Resolved
Comment thread justfile Resolved
@c-vigo
c-vigo enabled auto-merge March 27, 2026 10:04
@c-vigo
c-vigo merged commit b32f772 into dev Mar 27, 2026
11 checks passed
@c-vigo
c-vigo deleted the feature/456-split-final-release-publish-promote branch March 27, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants