fix: increase min-versions-to-keep to 4 to preserve latest image

This commit is contained in:
2026-08-01 15:22:25 +02:00
parent cdbe45c881
commit e44362da72
+14
View File
@@ -39,4 +39,18 @@ jobs:
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
cleanup-old-images:
needs: build-and-push
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete old, untagged image versions
uses: actions/delete-package-versions@v5
with:
package-name: ${{ github.event.repository.name }}
package-type: container
min-versions-to-keep: 4
delete-only-untagged-versions: true