feat(build-push-sign-images): push extra immutable tags next to the main tag #6
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
HOIST-IT-Actions/actions!6
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/build-push-extra-tags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Client repos pin CI images as
<img>:latest@sha256:<digest>. Those pins break within hours: the toolbox pushedlatex-full-cithree times on 2026-10-27 and the digests pinned after the first two pushes now returnmanifest unknown.Root cause, from the Forgejo source (
services/packages/container/manifest.go,createPackageAndVersion): a manifest pushed by tag becomes a package version named after the tag. Pushing the same tag again hitsErrDuplicatePackageVersionand callsDeletePackageVersionAndReferenceson the old version, which deletes the old manifest with it. Nothing else keeps that digest alive. Manifests pushed by digest (the cosign signature and attestation referrers) are versions of their own and survive, which is why the September referrers are still there while the images they sign are gone.Evidence on
latex-full-ci:@sha256:7f131e4f…(the 18:25 UTC build) returns 404manifest unknown.@sha256:970fa0cf…(subjectsha256:7f131e4f…) still resolves, as does thesha256-7f131e4f…referrers tag.:latestresolves tosha256:89a779ad…, the 19:42 UTC build.What
A new
extra-tagsinput for copyto-sign mode::latestnever points at a manifest without its immutable tag.skopeo --digestfile. The image fails closed unless all pushes yield one digest, so the one signature (which binds the digest) covers every tag.tagand the input in publish-app mode are rejected instead of being ignored.v0.5.0.Without
extra-tagsthe behaviour is unchanged apart from the extra--digestfileargument.Verification
action.ymlpasses ShellCheck.nix: no extra tags, two extra tags, a digest mismatch (fails and skips signing), a duplicate tag and publish-app withextra-tags(both rejected before the setup gc).--digestfileafter the positional arguments and gives the same digest for two copies of one image.After merge
Tag
v0.5.0so the toolbox PR that passes an immutable build tag can move to it.