Skip to content

Commit

Permalink
feat(ci): add registry cleanup script
Browse files Browse the repository at this point in the history
Cleans everything older than 90 days.
  • Loading branch information
castrojo authored Nov 24, 2024
1 parent 3eae314 commit b8a813d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Cleanup Old Images
on:
schedule:
- cron: "15 0 * * 0" # 0015 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: silverblue-main, kinoite-main, sericea-main, onyx-main, base-main, lazurite-main, vauxite-main older-than: 90 days
delete-orphaned-images: true
keep-n-tagged: 7
keep-n-untagged: 7

0 comments on commit b8a813d

Please sign in to comment.