Skip to content

GHCR Cleanup

Nightly cleanup of non-semver GHCR tags.

Keeps semver tags (1.0.0, 1.0.0-rc.1, etc.) and latest forever; deletes everything else (e.g. build-<sha>, pr-<n>) older than KEEP_DAYS. The release pipeline pushes intermediate build-<sha> tags before promotion โ€” this workflow stops them from accumulating.

Trigger manually with dryRun: true to preview the deletion list before letting it run unattended.

uses: huntridge-labs/argus/.github/workflows/ghcr-prune.yml@1.1.0

Triggers

  • Scheduled
  • Manual dispatch

Permissions

Scope Access
contents read
packages write

Jobs

prune โ€” Prune non-semver tags

Runs on: ubuntu-latest ยท Timeout: 15 minutes

Steps:

  1. Prune