Skip to content

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

Open
nwish wants to merge 2 commits into
mainfrom
chore/retain-three-sha-ghcr-versions
Open

nwish wants to merge 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
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