Skip to content

Prune old SHA-only GHCR image versions (keep newest 5) - #21

Merged
nwish merged 2 commits into
mainfrom
chore/retain-three-sha-ghcr-versions
Nov 29, 2026
Merged

nwish merged 2 commits into
mainfrom
chore/retain-three-sha-ghcr-versions

Conversation

@nwish

@nwish nwish commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

After a successful publish, retain the five newest SHA-only GHCR versions of ghcr.io/nwish/rerun and delete older SHA-only versions. Supports the repository's full SHA tags.

Preserves release-tagged and multi-tagged versions, including latest, plus untagged manifests. Cleanup requires GHCR package deletion permissions for GITHUB_TOKEN and will not run until merged and a subsequent publish succeeds.

@nwish nwish changed the title Prune old SHA-only GHCR image versions (keep newest 3) Prune old SHA-only GHCR image versions (keep newest 5) Nov 22, 2026
@nwish
nwish merged commit c80f494 into main Nov 29, 2026
6 checks passed
@nwish
nwish deleted the chore/retain-three-sha-ghcr-versions branch November 29, 2026 02:23
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