Skip to content

Commit

Permalink
Add build-deploy step to delete older images
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpnelson authored Nov 4, 2024
1 parent a5f0edf commit 3a849b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3a849b5

Please sign in to comment.