Skip to content

Cleanup old GHCR images #2

Cleanup old GHCR images

Cleanup old GHCR images #2

Workflow file for this run

name: Cleanup old GHCR images
on:
schedule:
# Run weekly on Sunday at midnight UTC
- cron: "0 0 * * 0"
workflow_dispatch: # allow manual trigger
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete untagged backend images
uses: actions/delete-package-versions@v5
with:
package-name: backend
package-type: container
owner: GenerateNU
min-versions-to-keep: 5
delete-only-untagged-versions: true
token: ${{ secrets.GITHUB_TOKEN }}