feat(ci): retain recent release images
Runner Canary / runner-canary (push) Successful in 2s

This commit is contained in:
2026-08-18 10:44:02 +08:00
parent 77bb2e5a06
commit 68c8a98553
2 changed files with 104 additions and 1 deletions
+12 -1
View File
@@ -1,3 +1,14 @@
# ci-templates
Reusable offline-safe CI/CD workflows
Reusable offline-safe CI/CD workflows.
## Container release retention
After a tagged release passes candidate verification and is promoted to Dev, the
container workflow keeps the current immutable `sha-<commit>` image and the most
recent previous release by default. Set `release_retention_count` on the caller
to retain a different positive number.
Retention only matches versions in `sha-` followed by a 40-character commit
hash. Registry versions named `sha256:*`, `ci-cache`, or anything else are never
selected for deletion by this step.