We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5256776 commit ad8102aCopy full SHA for ad8102a
.github/workflows/docker-publish.yml
@@ -81,3 +81,12 @@ jobs:
81
platforms: linux/amd64,linux/arm64/v8
82
cache-from: type=local,src=/tmp/.buildx-cache
83
cache-to: type=local,dest=/tmp/.buildx-cache
84
+
85
+ # Clean-up untagged; See:
86
+ # https://github.com/actions/delete-package-versions?tab=readme-ov-file#delete-all-untagged-container-versions-except-y-latest-untagged-versions
87
+ - uses: actions/delete-package-versions@v5
88
+ with:
89
+ package-name: ${{ env.IMAGE_NAME }}
90
+ package-type: 'container'
91
+ min-versions-to-keep: 3
92
+ delete-only-untagged-versions: 'true'
0 commit comments