From 6de4137d3492679ff262ed4ad1f6d22b6caf6a60 Mon Sep 17 00:00:00 2001 From: Michael Nelson Date: Mon, 4 Nov 2024 14:49:57 -0800 Subject: [PATCH] Add step to delete older images --- .github/workflows/build-deploy-dev.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-deploy-dev.yaml b/.github/workflows/build-deploy-dev.yaml index e449f69..6eb957d 100644 --- a/.github/workflows/build-deploy-dev.yaml +++ b/.github/workflows/build-deploy-dev.yaml @@ -67,3 +67,11 @@ jobs: DOCKER_REGISTRY: 'ghcr.io' PR_REVIEWERS: '["michaelpnelson"]' PR_MENTIONS: '["michaelpnelson"]' + + - name: Deleting older images + uses: actions/delete-package-versions@v5 + with: + package-name: 'smk-firewood/smk-firewood' + package-type: 'container' + token: ${{ secrets.GHCR_TOKEN }} + min-versions-to-keep: 10 \ No newline at end of file