Skip to content

Commit

Permalink
feat(ci): clean up images older than 90 days (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
castrojo authored Dec 15, 2024
1 parent 7822369 commit fdc8993
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Cleanup Old Images
on:
schedule:
- cron: "30 0 * * 0" # 0030 UTC on Sundays
workflow_dispatch:

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/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
packages: akmods,akmods-zfs,akmods-extra,akmods-nvidia-open
older-than: 90 days
delete-orphaned-images: true
keep-n-tagged: 7
keep-n-untagged: 7

0 comments on commit fdc8993

Please sign in to comment.