From 7faf9796d66cd9a87a95fe6a787abca76d86f04f Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sat, 28 Dec 2024 09:57:25 +0100 Subject: [PATCH] Clean up old images after a build (dry-run) --- .github/workflows/docker-image.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 74becae..bc1a9d2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -57,3 +57,11 @@ jobs: build-args: | version=${{ matrix.version }} context: "{{defaultContext}}:postgres" + cleanup: + runs-on: ubuntu-latest + needs: [ 'perl', 'postgres' ] + steps: + - name: ghcr.io cleanup action + uses: dataaxiom/ghcr-cleanup-action@v1 + with: + dry-run: true