diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 6fccfa0..c68e2cd 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -40,6 +40,16 @@ jobs: with: lfs: true + + - name: Clean up docker images + uses: dataaxiom/ghcr-cleanup-action@v1.0.16 + with: + dry-run: true + keep-n-tagged: 5 + exclude-tags: latest + delete-untagged: true + delete-partial-images: true + # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer - name: Install cosign