Mjolnir uses a two-branch, digest-promotion release model adapted from projectbluefin/dakota.
| Branch | Default? | Builds? | Image tag | Purpose |
|---|---|---|---|---|
testing |
yes | yes | :testing |
Integration trunk; all development and CI land here. |
stable |
no | no | :stable |
Production pointer, moved only by digest promotion. |
main |
no | no | — | Historical pointer; retained for compatibility, not built. |
The build, plugin, multinode and quality workflows run on testing.
Pushes to stable do not trigger a rebuild — the branch exists so downstream
consumers and humans have a stable ref, and so the release workflow can record
the promoted commit.
Stable is cut on demand, never on a schedule. Both modes are dry-run by
default; promotion requires an explicit --apply.
just release # preflight: resolve + verify candidate, compare to :stable
just release --apply # promote tested digest to :stable and cut a GitHub Release
just release --apply sha=<40-char> # recovery: promote a specific already-tested commitWhat preflight does:
- Resolves the candidate commit (testing HEAD unless
sha=is given). - Confirms a successful
buildworkflow run exists for that exact SHA. - Resolves the
:testingimage digest from that run's artifact. - Verifies the cosign keyless signature and SPDX attestation with
scripts/verify-image.sh. - Compares the candidate digest with the current
:stabledigest and reports whether promotion is needed.
What --apply additionally does:
- Re-tags the exact verified digest as
:stablewithskopeo copy(no rebuild, no new layer). - Moves the
stableGit branch to the candidate commit. - Creates a GitHub Release tagged
v<YYYY.MM.DD>-<short-sha>whose notes record the promoted digest, image reference and upgrade command. The full commit history is available from the tag's target; automated changelog and SBOM attachment are not yet implemented.
If :stable already equals the candidate digest, promotion is a successful
no-op. A missing or unsigned candidate fails the release.
Pass sha=<full-40-character-SHA> to select an already-published testing commit
instead of HEAD. This bypasses only the "find the latest successful run" lookup —
digest resolution, signature verification and the apply-time checks still run.
Empty, abbreviated or malformed SHAs are rejected. Without an explicit SHA,
preflight and apply resolve HEAD independently and can select different commits
if testing advances between them; re-run preflight immediately before
--apply in that case.
Because promotion is digest-based and stable is never rebuilt, rolling back
means promoting an older known-good :testing digest with its full SHA (see
Recovery above). The image's bootc upgrade origin is unchanged; nodes running
:stable pick up the promoted digest on their next bootc upgrade.