Skip to content

ci: add scheduled pruning of old untagged GHCR versions#3153

Merged
nuclearcat merged 1 commit into
kernelci:mainfrom
nuclearcat:ghcr-prune
Jul 20, 2026
Merged

ci: add scheduled pruning of old untagged GHCR versions#3153
nuclearcat merged 1 commit into
kernelci:mainfrom
nuclearcat:ghcr-prune

Conversation

@nuclearcat

Copy link
Copy Markdown
Member

Staging rebuilds accumulate thousands of untagged container versions on ghcr.io (staging-kernelci alone reached ~9000). Add a weekly workflow deleting untagged versions older than 180 days.

Tagged manifests are resolved through the registry API first, so per-arch children of multi-arch indexes are never deleted. The job runs with the default GITHUB_TOKEN (packages: write) and supports manual dispatch with a dry-run flag and configurable age cutoff.

Staging rebuilds accumulate thousands of untagged container versions
on ghcr.io (staging-kernelci alone reached ~9000). Add a weekly
workflow deleting untagged versions older than 180 days.

Tagged manifests are resolved through the registry API first, so
per-arch children of multi-arch indexes are never deleted. The job
runs with the default GITHUB_TOKEN (packages: write) and supports
manual dispatch with a dry-run flag and configurable age cutoff.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@nuclearcat
nuclearcat added this pull request to the merge queue Jul 20, 2026
Merged via the queue into kernelci:main with commit 7fd7173 Jul 20, 2026
3 checks passed
@nuclearcat
nuclearcat deleted the ghcr-prune branch July 20, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant