Repository navigation
Description
Description
Add release-candidate (RC) publishing capability to the devcontainer release workflow, allowing pre-release images to be smoke-tested before the final release. Include cleanup of RC tags after the final release is published.
Problem Statement
The current release workflow publishes the final image directly. There is no pre-release validation step where the built image can be tested in a real downstream CI environment before it reaches users. If the image has a regression that existing tests don't catch (e.g., tool misconfiguration in a CI context), it ships to users.
Proposed Solution
- Add RC publishing capability (new workflow
release-rc.ymlor new job in existingrelease.yml):- Triggered manually or automatically when CI passes on a release branch PR
- Publishes
X.Y.Z-rc1to GHCR (ghcr.io/vig-os/devcontainer:X.Y.Z-rc1) - Supports incrementing RC number (
rc1,rc2, etc.)
- Add RC cleanup step to the final release publish job:
- After
X.Y.Zis published, delete allX.Y.Z-rc*tags from GHCR viagh api
- After
- RC tags follow SemVer pre-release format
Alternatives Considered
See parent issue #169 for full alternatives analysis.
Additional Context
This is sub-issue 3 of 4 for #169 (Phase 1). Can be worked in parallel with #170 (smoke-test repo bootstrap).
Dependency graph:
- No dependencies (parallel with [FEATURE] Bootstrap smoke-test repo with bare-runner CI #170, [FEATURE] Add container-based CI workflow to smoke-test repo #171)
- Sub-issue 4 (cross-repo dispatch) depends on this issue
The devcontainer repo's existing release workflow is at .github/workflows/release.yml. The template release workflow at assets/workspace/.github/workflows/release.yml is not modified by this issue.
Impact
- Backward compatible. Adds new capability to the release workflow without changing the existing release flow.
- Minor GHCR storage cost for RC images (cleaned up after final release).
Changelog Category
Added
Acceptance Criteria
- Can publish
X.Y.Z-rc1to GHCR from a release branch - Can publish incremented RCs (
rc2,rc3, etc.) - Candidate tags (
X.Y.Z-rc*) are retained after final release - Existing release workflow is not broken
- TDD compliance (see .cursor/rules/tdd.mdc)
Activity
c-vigo commentedon Mar 4, 2026
Design
Issue: #172
Branch: feature/172-rc-publishing-cleanup-release-workflow
Decisions Confirmed
.github/workflows/release.yml(no new workflow file).release-kindinput with defaultcandidate.X.Y.Z-rcN).X.Y.Z-rcN).Architecture
validate -> finalize -> build-and-test -> publish -> rollbackstructure.validateandpublish:candidatemode computespublish_version = X.Y.Z-rcNusing next available N from existing tags.finalmode keeps currentpublish_version = X.Y.Zbehavior.Data Flow
workflow_dispatchinputs feedvalidate.validateoutputs include mode and computed publish version.build-and-testremains unchanged and uses baseX.Y.Zinputs for branch/release context.publishuses computed publish version for tag and image manifest naming.Publish Rules
X.Y.Z-rcN.X.Y.Z-rcN.latest.X.Y.Z, manifestX.Y.Z, and conditionallatest.Error Handling and Safety
Testing Strategy (TDD-aligned)
rc1.rc2,rc3, ...).latest.feat(ci): add candidate release mode with inferred RC tags
test: add case for inline ## markers truncating changelog extraction
fix: anchor changelog regex to line starts to prevent truncation
feat: redesign release CHANGELOG flow and replace post-release with P…
ci: migrate workflow tokens to RELEASE_APP and COMMIT_APP
feat(ci): add candidate release mode and PR-based dev sync (#220)
chore: release 0.3.0 (#270)