Skip to content

.github/workflows/cleanup-old-images.yml #153

.github/workflows/cleanup-old-images.yml

.github/workflows/cleanup-old-images.yml #153

on:
schedule:
- cron: '05 7 * * *' # 7:05 UTC everyday
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: ublue-whitesur-bazzite,ublue-whitesur-aurora
older-than: 90 days
keep-n-tagged: 7
keep-n-untagged: 7
delete-orphaned-images: true
#dry-run: true