ci: a pushed v* tag is the release (guard, tested mix.lock, push by digest, assert, tag, sign) #23

Closed
mercurius wants to merge 0 commits from mercurius/5-tag-release into main
Member

Refs #5

The forge release path, copied from mcl-stations test.yml release job.

  • guard back (stand-in from 1dcf7a2^, byte for byte), runs-on ["docker"], versions: none: VERSION is the one version source, so the release job refuses a tag that is not v (Supervisor ruling on #5; macula-ci-images issue for the guard to read VERSION).
  • test hands mix.lock on as outputs (base64 + sha256).
  • release (v* tag push, image-build runner): tested lock checked vs digest, remote BuildKit build pushed BY DIGEST untagged, assert_release_matches_lock.sh on that digest, then :X.Y.Z and :X.Y as a carbon copy (read back), cosign sign + SPDX SBOM + SLSA provenance. No :latest.
  • push loses paths-ignore (a docs-only tag would release nothing); PRs keep it.
  • Containerfile source label names the forge repo.

Proof: dispatch dry run (guard + test run, release skipped). What only a tag can run: the release job itself.

Refs #5 The forge release path, copied from mcl-stations test.yml release job. - guard back (stand-in from 1dcf7a2^, byte for byte), runs-on ["docker"], `versions: none`: VERSION is the one version source, so the release job refuses a tag that is not v<VERSION> (Supervisor ruling on #5; macula-ci-images issue for the guard to read VERSION). - test hands mix.lock on as outputs (base64 + sha256). - release (v* tag push, image-build runner): tested lock checked vs digest, remote BuildKit build pushed BY DIGEST untagged, assert_release_matches_lock.sh on that digest, then :X.Y.Z and :X.Y as a carbon copy (read back), cosign sign + SPDX SBOM + SLSA provenance. No :latest. - push loses paths-ignore (a docs-only tag would release nothing); PRs keep it. - Containerfile source label names the forge repo. Proof: dispatch dry run (guard + test run, release skipped). What only a tag can run: the release job itself.
ci: a pushed v* tag is the release: guard, tested mix.lock, push by digest, assert, tag, sign
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 2s
c4 model / c4-model (pull_request) Successful in 0s
ci / guard-1 (pull_request) Successful in 9s
ci / guard (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 5m57s
ci / Release (forge, v* tag) (pull_request) Has been skipped
c4 model / c4-model-1 (push) Successful in 5s
ci / guard-1 (push) Successful in 5s
c4 model / c4-model (push) Successful in 0s
ci / guard (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 6m18s
ci / Release (forge, v* tag) (push) Has been skipped
a9eddab377
The forge release path for this repository (DECIDED 2026-11-24 "Tag = CI build"),
copied from mcl-stations test.yml's release job.

- ci-images-release-guard.yml is back (from 1dcf7a2^, byte for byte), called with
  runs-on ["docker"] and versions: none: the guard reads a literal mix.exs
  version and this umbrella's one version lives in VERSION, so the release job
  refuses a tag that is not v<VERSION> itself (Supervisor ruling on #5).
- test hands its mix.lock on as job outputs (bytes base64 + sha256) again.
- release (forge, v* tag push, image-build runner): checks the tested lock
  against its digest, builds with the remote BuildKit and pushes BY DIGEST
  with no tag, runs scripts/assert_release_matches_lock.sh on that digest,
  then names it :X.Y.Z and :X.Y (carbon copy, read back) and signs it with
  cosign plus SPDX SBOM and SLSA provenance attestations. No :latest.
- push no longer carries paths-ignore: it would skip a docs-only tag push,
  which would then release nothing. Pull requests keep their filter.
- Containerfile: the source label names the forge repository.

Refs macula-services/mcl-bookclub-phoenix#5
Member

Landed by fast-forward: main is a9eddab377 (from 6bee0640). This repository does not allow the manually-merged style, so the PR is closed by hand.

Landed by fast-forward: main is a9eddab3774e1804ceec024a3153e7efc592004d (from 6bee0640). This repository does not allow the manually-merged style, so the PR is closed by hand.
terra closed this pull request 2026-12-01 16:16:34 +00:00
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 2s
c4 model / c4-model (pull_request) Successful in 0s
ci / guard-1 (pull_request) Successful in 9s
ci / guard (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 5m57s
ci / Release (forge, v* tag) (pull_request) Has been skipped
c4 model / c4-model-1 (push) Successful in 5s
ci / guard-1 (push) Successful in 5s
c4 model / c4-model (push) Successful in 0s
ci / guard (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 6m18s
ci / Release (forge, v* tag) (push) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-bookclub-phoenix!23
No description provided.