name: Cleanup Old Images
on:
schedule:
- cron: "15 0 * * 0"
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
jobs:
delete-older-than-90:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete Images Older Than 90 Days
uses: dataaxiom/ghcr-cleanup-action@d52806a0dc70b430571a37da1fde39733ffd640f
with:
token: ${{ secrets.GITHUB_TOKEN }}
packages: aurora,aurora-dx,aurora-nvidia-open,aurora-dx-nvidia-open
older-than: 90 days
delete-orphaned-images: true
keep-n-tagged: 7
keep-n-untagged: 7
- name: Delete All OCI Artifact Cache
uses: dataaxiom/ghcr-cleanup-action@d52806a0dc70b430571a37da1fde39733ffd640f
with:
token: ${{ secrets.GITHUB_TOKEN }}
packages: aurora/cache/dnf
keep-n-tagged: 1
older-than: 90 days