Skip to content

Commit 8fe7696

Browse files
authored
Update deploy-image-package.yml
1 parent 187f1c6 commit 8fe7696

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/deploy-image-package.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ jobs:
3232
- name: Set Version
3333
run: mvn versions:set -DnewVersion=${{ github.ref_name }} -DgenerateBackupPoms=false
3434

35+
- name: Delete old images
36+
uses: actions/delete-package-versions@v5
37+
with:
38+
package-name: 'me.alexpresso.zunivers-ninja'
39+
package-type: 'maven'
40+
min-versions-to-keep: 5
41+
3542
- name: Publish
3643
run: mvn deploy -B
3744
env:
@@ -54,6 +61,13 @@ jobs:
5461
type=semver,pattern={{version}}
5562
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5663

64+
- name: Delete old images
65+
uses: actions/delete-package-versions@v5
66+
with:
67+
package-name: 'zunivers-ninja'
68+
package-type: 'container'
69+
min-versions-to-keep: 5
70+
5771
- name: Build and push Docker image
5872
uses: docker/build-push-action@v5
5973
with:

0 commit comments

Comments
 (0)