From 7af784a4910833709977fe5ab7fc1124598f367f Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sat, 28 Dec 2024 12:20:59 +0100 Subject: [PATCH] Create images-cleanup.yml Clean up untagged images from the 'ledgersmb' package repo --- .github/workflows/images-cleanup.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/images-cleanup.yml diff --git a/.github/workflows/images-cleanup.yml b/.github/workflows/images-cleanup.yml new file mode 100644 index 0000000..0dba6cb --- /dev/null +++ b/.github/workflows/images-cleanup.yml @@ -0,0 +1,18 @@ +name: Docker Image cleanup + +on: + push: + workflow_dispatch: + schedule: + # Schedule for five minutes after the hour, every Friday + - cron: '10 3 * * 5' + +jobs: + cleanup: + if: github.repository_owner == 'ledgersmb' + runs-on: ubuntu-latest + steps: + - name: ghcr.io cleanup action + uses: dataaxiom/ghcr-cleanup-action@v1 + with: + packages: ledgersmb