fix(registry): the cleanup policy deletes release image tags — name_regex_keep protects none
A release's container images expire about a week after the release, so a release cannot be deployed from the registry after that.
Evidence (2026-11-08):
- The project's container expiration policy is
{cadence: 1d, keep_n: 5, older_than: 7d, name_regex: ".*", name_regex_keep: null}. Every tag in every repository matches it, and no tag is protected. craig/craig-cases(like every service repository) holds 58 tags, all of which are short shas pluslatest. There is nov*tag.docker-promotepushes:<sha8>and:latestfrommain, and the tag pipeline (sbom,release) creates the GitLab Release but pushes no image tag.- So the images for
v0.2.0(cut 2026-11-08) are only its merge commit's:<sha8>tags. Under the policy they are deleted once they are more than 7 days old and outside the 5 newest tags of their repository, which takes about a week of normal merges.
Fix (two parts):
- Code (agent): the tag pipeline retags the tagged commit's promoted images as
:vX.Y.Z, without a rebuild (docker buildx imagetools createfrom:<sha8>). It fails the pipeline if any service image for that commit is missing, and the Release notes name the:vX.Y.Zrefs. Add a contract test on the job's script lines. Once it lands, run it once forv0.2.0, before its sha tags expire. - Settings (maintainer): set
name_regex_keep: '^(v\d+\.\d+\.\d+.*|latest)$'on the project's container expiration policy so release tags survive. This is a project setting, so it is a maintainer decision.
This is related to #2779 (closed) (the floating tag split) but is a separate problem: release images vanishing, not which commit :latest tracks.