GHCR Cleanup
Nightly cleanup of GHCR images.
Keeps semver tags (1.0.0, 1.0.0-rc.1, etc.), latest, and any version that
carries one of them, forever. Deletes other tags (sha-<commit> from merge
builds, build-<sha>, pr-<n>) older than KEEP_DAYS. Deletes an untagged
version only when it is older than KEEP_DAYS and no kept version references
it; if references can't be read for a package, its untagged versions stay.
A manual run defaults to a dry run, which lists what would be deleted and deletes nothing. The nightly schedule always deletes.
uses: huntridge-labs/argus/.github/workflows/ghcr-prune.yml@1.15.2-rc.0
Triggers
- Scheduled
- Manual dispatch
Permissions
| Scope | Access |
|---|---|
contents |
read |
packages |
write |
Jobs
prune โ Prune old tags and untagged versions
Runs on: ubuntu-latest ยท Timeout: 15 minutes
Steps:
- Prune