Release path: a v* tag builds, pushes and signs the image on the forge #5

Closed
opened 2026-12-01 04:18:12 +00:00 by mercurius · 3 comments
Member

Purpose (feature): a pushed v* tag makes forge CI build, push and sign the mcl-bookclub-phoenix image, which is the standard release path. Signing comes back with it.

Refs macula-services/mcl-bookclub-phoenix#4, macula-services/mcl-bookclub-phoenix#3

Why

The forge CI port (#4 PR 0) drops the GitHub-only image, attest and promote-latest jobs, along with guard. The rulings behind that:

  • DECIDED 2026-11-24 "nothing stays on github!"
  • DECIDED 2026-11-24 "Tag = CI build (Recommended)"

Until this issue lands, a phoenix image is neither built nor signed.

Plan

  • Use the reviewed forge-setup release-setup scripts, as on macula-realm, macula-portal and mcl-stations.
  • On a v* tag, forge CI builds the image from the tested resolve, pushes it to the forge registry and signs it, with the key held as a repo secret. (:latest dropped: see Done when.)
  • Scheduled after parity PR 2 of #4 (Supervisor ruling 2026-12-01).

Done when

  • a v* tag on this repo produces a signed image on the forge registry, verified by digest
  • :latest names that signed digest dropped. Supervisor ruling 2026-12-01: "No :latest. The fleet pins by digest (macula-portal#49)." The tag pushes :X.Y.Z and :X.Y only, as mcl-stations and macula-realm do.
Purpose (feature): a pushed `v*` tag makes forge CI build, push and sign the mcl-bookclub-phoenix image, which is the standard release path. Signing comes back with it. Refs macula-services/mcl-bookclub-phoenix#4, macula-services/mcl-bookclub-phoenix#3 ## Why The forge CI port (#4 PR 0) drops the GitHub-only `image`, `attest` and `promote-latest` jobs, along with `guard`. The rulings behind that: - DECIDED 2026-11-24 "nothing stays on github!" - DECIDED 2026-11-24 "Tag = CI build (Recommended)" Until this issue lands, a phoenix image is neither built nor signed. ## Plan - Use the reviewed forge-setup release-setup scripts, as on macula-realm, macula-portal and mcl-stations. - On a `v*` tag, forge CI builds the image from the tested resolve, pushes it to the forge registry and signs it, with the key held as a repo secret. (`:latest` dropped: see Done when.) - Scheduled after parity PR 2 of #4 (Supervisor ruling 2026-12-01). ## Done when - [ ] a `v*` tag on this repo produces a signed image on the forge registry, verified by digest - ~~`:latest` names that signed digest~~ dropped. Supervisor ruling 2026-12-01: "No :latest. The fleet pins by digest (macula-portal#49)." The tag pushes `:X.Y.Z` and `:X.Y` only, as mcl-stations and macula-realm do.
Author
Member

Added from Uranus's review of #4 PR 0 (forge PR 6, note n1). SHIPPED == TESTED belongs to this release path.

PR 0 removed the mix.lock hand-off along with the image job. The forge release job must bring it back:

  • build the image from the resolve that the gates ran on;
  • check the built release against that resolve before anything is pushed. scripts/assert_release_matches_lock.sh was kept for this.

Done-when gains:

  • the release job builds from the tested mix.lock, and assert_release_matches_lock.sh passes before the push
Added from Uranus's review of #4 PR 0 (forge PR 6, note n1). **SHIPPED == TESTED belongs to this release path.** PR 0 removed the mix.lock hand-off along with the image job. The forge release job must bring it back: - build the image from the resolve that the gates ran on; - check the built release against that resolve before anything is pushed. `scripts/assert_release_matches_lock.sh` was kept for this. Done-when gains: - [ ] the release job builds from the tested mix.lock, and `assert_release_matches_lock.sh` passes before the push
Author
Member

Supervisor ruling, 2026-12-01: keep VERSION as the one version source (no hard-coded values). The release guard is called with versions: none, and the release job refuses a tag that is not v$(cat VERSION). The guard learning to read a VERSION file is macula-io/macula-ci-images#36. The workflow is PR 23.

Supervisor ruling, 2026-12-01: keep `VERSION` as the one version source (no hard-coded values). The release guard is called with `versions: none`, and the release job refuses a tag that is not `v$(cat VERSION)`. The guard learning to read a VERSION file is macula-io/macula-ci-images#36. The workflow is PR 23.
Author
Member

Done: v0.2.0 is released and verified by digest.

  • a v* tag on this repo produces a signed image on the forge registry, verified by digest
    • Tag: signed annotated v0.2.0 be568b12b3, pointing at 54c8407a3c (read back with git ls-remote). It was tagged after main runs 6528, 6529 and 6530 went green.
    • Tag run 6531 (ci.yml): Dependency advisories job 26869, then Release job 26870. Release needs [guard, test, advisories] (#24).
    • Registry: :0.2.0 = :0.2 = sha256:d0548c0120d6cccf7656b1f6f73c6504588f0cd3450c70521a7d863725bb8c60. No :latest.
    • Verified by digest the way macula-fleet edge/gitops/verify-image.sh does in key mode: cosign git.macula.io/macula-pub/cosign:v3.1.3@sha256:6ca1127d…, --key = the one PEM block of gitops/signer-keys.pub (sha256 bce30e78…), --insecure-ignore-tlog=true:
      • cosign verify -a repo=macula-services/mcl-bookclub-phoenix -a ref=v0.2.0 git.macula.io/macula-services/mcl-bookclub-phoenix@sha256:d0548c01… rc=0: "The specified annotations were verified. … The signatures were verified against the specified public key". The payload reads {commit: 54c8407a…, ref: v0.2.0, repo: macula-services/mcl-bookclub-phoenix}.
      • verify-attestation --type spdxjson rc=0, verify-attestation --type slsaprovenance rc=0.
  • :latest names that signed digest was dropped by Supervisor ruling 2026-12-01: "No :latest. The fleet pins by digest (macula-portal#49)."

Rulings: DECIDED 2026-11-24 "nothing stays on github!"; DECIDED 2026-11-24 "Tag = CI build (Recommended)"; DECIDED 2026-12-01 "Advisories job, then tag (Recommended)".

Done: `v0.2.0` is released and verified by digest. - [x] a `v*` tag on this repo produces a signed image on the forge registry, verified by digest - Tag: signed annotated `v0.2.0` be568b12b3fadf4685c85586e33c059a42f632c5, pointing at 54c8407a3c420b36228d00f310e790726f8d7099 (read back with `git ls-remote`). It was tagged after main runs 6528, 6529 and 6530 went green. - Tag run 6531 (ci.yml): Dependency advisories job 26869, then Release job 26870. Release needs `[guard, test, advisories]` (#24). - Registry: `:0.2.0` = `:0.2` = `sha256:d0548c0120d6cccf7656b1f6f73c6504588f0cd3450c70521a7d863725bb8c60`. No `:latest`. - Verified by digest the way macula-fleet `edge/gitops/verify-image.sh` does in key mode: cosign `git.macula.io/macula-pub/cosign:v3.1.3@sha256:6ca1127d…`, `--key` = the one PEM block of `gitops/signer-keys.pub` (sha256 bce30e78…), `--insecure-ignore-tlog=true`: - `cosign verify -a repo=macula-services/mcl-bookclub-phoenix -a ref=v0.2.0 git.macula.io/macula-services/mcl-bookclub-phoenix@sha256:d0548c01…` rc=0: "The specified annotations were verified. … The signatures were verified against the specified public key". The payload reads `{commit: 54c8407a…, ref: v0.2.0, repo: macula-services/mcl-bookclub-phoenix}`. - `verify-attestation --type spdxjson` rc=0, `verify-attestation --type slsaprovenance` rc=0. - ~~`:latest` names that signed digest~~ was dropped by Supervisor ruling 2026-12-01: "No :latest. The fleet pins by digest (macula-portal#49)." Rulings: DECIDED 2026-11-24 "nothing stays on github!"; DECIDED 2026-11-24 "Tag = CI build (Recommended)"; DECIDED 2026-12-01 "Advisories job, then tag (Recommended)".
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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#5
No description provided.