We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 584a1c2 commit fb5ef26Copy full SHA for fb5ef26
.github/workflows/container-registry-ghcr.yaml
@@ -54,3 +54,18 @@ jobs:
54
platforms: linux/amd64,linux/arm64
55
push: true
56
tags: ${{ steps.meta.outputs.tags }}
57
+ cleanup-untagged-versions:
58
+ name: Cleanup untagged GHCR versions
59
+ needs:
60
+ - build-and-push-image
61
+ runs-on: ubuntu-latest
62
+ steps:
63
+ - name: Check out code
64
+ uses: actions/checkout@v5
65
+ - name: Cleanup untagged GHCR versions
66
+ uses: actions/delete-package-versions@v5
67
+ with:
68
+ delete-only-untagged-versions: "true"
69
+ min-versions-to-keep: "0"
70
+ package-name: ${{ github.event.repository.name }}
71
+ package-type: container
0 commit comments