From 0ff451db136270dd60c8a98c2adf790d572fe51c Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Wed, 25 Dec 2024 10:24:57 +0100 Subject: [PATCH] Wed 25 Dec 2024 22:24:59 NZDT --- .github/workflows/build.yml | 24 ------------------------ .github/workflows/cleanup.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/cleanup.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb61af3..d6e076e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/ghcr-cleanup-action@v1.0.14 - with: - token: ${{ secrets.GITHUB_TOKEN }} - older-than: 30 days - delete-orphaned-images: true - #keep-n-tagged: 7 - #keep-n-untagged: 7 - #dry-run: true diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..557de87 --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -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/ghcr-cleanup-action@v1.0.14 + with: + token: ${{ secrets.GITHUB_TOKEN }} + older-than: 30 days + delete-orphaned-images: true + #keep-n-tagged: 7 + #keep-n-untagged: 7 + #dry-run: true +