Skip to content

Commit

Permalink
Wed 25 Dec 2024 22:24:59 NZDT
Browse files Browse the repository at this point in the history
  • Loading branch information
YardQuit committed Dec 25, 2024
1 parent 40d5935 commit 0ff451d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,27 +182,3 @@ jobs:
# if-no-files-found: error
# retention-days: 0
# compression-level: 0
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 30 Days
uses: dataaxiom/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
older-than: 30 days
delete-orphaned-images: true
#keep-n-tagged: 7
#keep-n-untagged: 7
#dry-run: true
25 changes: 25 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cleanup
on:
schedule:
- cron: '05 7 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

jobs:
delete-older-than-30:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete Images Older Than 30 Days
uses: dataaxiom/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
older-than: 30 days
delete-orphaned-images: true
#keep-n-tagged: 7
#keep-n-untagged: 7
#dry-run: true

0 comments on commit 0ff451d

Please sign in to comment.