Skip to content

Commit

Permalink
Delete old package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeitong committed Aug 24, 2024
1 parent f056f25 commit 9a720b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ jobs:
subject-name: ${{ env.REGISTRY }}/${{ env.USER_NAME }}/${{ matrix.image }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

- name: Delete old packages
uses: actions/delete-package-versions@v5
with:
package-name: ${{ matrix.image }}
package-type: 'container'
min-versions-to-keep: 3

0 comments on commit 9a720b4

Please sign in to comment.