CI: nightly registry cleanup - prune hash images not release-tagged nor a branch head #6
Reference in New Issue
Block a user
Delete Branch "registry-cleanup"
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?
Nightly
registry-cleanup.yml(cron + manual dispatch) runsregistry-cleanup/cleanup.tsin a bare pinnednode:24container: a commit-hash image survives only while its commit is a branch head or carries avX.Y.Zrelease tag; untaggedsha256:*child manifests no longer referenced by any surviving tag are deleted too (they hold the actual layers). Named tags are never touched. Pure planning functions are unit-tested; the IO shell fails loud (missing env, HTTP errors, empty branch list, empty-page pagination). README retention advice replaced accordingly — the org-level pattern cleanup rule should be removed.