Skip to content

fix(ci): give each publish a tag that never moves - #28

Merged
dan-petty merged 1 commit into
mainfrom
fix/17-immutable-tag
Nov 20, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/17-immutable-tag

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Give each publish a tag that never moves.

  • The date tag moved with each publish: 20261120 moved 7 times on 2026-11-20, and each move left the earlier manifest list untagged, while consumers pin those digests.
  • A version job gives the run one version, YYYYMMDD.<run number>, at its start (the date first, so tags sort by date). The push job's version label and the publish job's tag both use it, also across midnight. A re-run of the failed jobs keeps it.
  • The publish job stops when the tag exists already ("not found" from imagetools inspect is the only pass). latest moves as before.
  • README: the version, and the guard.

Proof: actionlint and zizmor pass. After merge: two publishes give two tags; skopeo inspect of a platform image shows the tag in org.opencontainers.image.version.

Closes #17

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows: build, scan, push and publish labels Nov 20, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 18:50
@dan-petty
dan-petty marked this pull request as draft November 20, 2026 18:51
The publish job tagged each manifest list with the date, and each push
to main and the daily rebuild published a new list. On 2026-11-20,
seven runs published, and the tag 20261120 moved seven times. Each move
left the earlier list with no tag, and consumers pin those digests.

- A version job gives the run one version, YYYYMMDD.<run number>,
  at its start. The date comes first, so the tags sort by date, and
  the run number makes each tag unique. A re-run of the failed jobs
  keeps the version of the run.
- The push job gives the version to the label
  org.opencontainers.image.version, and the publish job tags the
  manifest list with it, so the label and the tag are the same.
- The publish job stops when the tag exists already: a tag never moves.
- latest moves as before, after the attestation.

Closes #17
@dan-petty
dan-petty force-pushed the fix/17-immutable-tag branch from abdb06c to 462e0ba Compare November 20, 2026 18:52
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 18:59
@dan-petty
dan-petty merged commit f6d4f81 into main Nov 20, 2026
9 checks passed
@dan-petty
dan-petty deleted the fix/17-immutable-tag branch November 20, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows: build, scan, push and publish type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): give each publish a tag that never moves

1 participant