Skip to content

Commit

Permalink
chore(ci): ensure packages are cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Oct 23, 2024
1 parent ede5689 commit b6aeb84
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cleanup-old-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cleanup Old Images
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 }}
older-than: 90 days
delete-orphaned-images: true
#packages: bos
#keep-n-tagged: 7
#keep-n-untagged: 7
#dry-run: true

0 comments on commit b6aeb84

Please sign in to comment.