File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed
Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,14 @@ jobs:
2727 run : |
2828 .github/workflows/scripts/delete-untagged-amazon-public-ecr-images.sh
2929
30- # - name: Fetch multi-platform package version SHAs
31- # id: multi-arch-digests
32- # run: |
33- # package=$(docker manifest inspect ghcr.io/nginxinc/nginx-unprivileged | jq -r '.manifests.[] | .digest' | paste -s -d ' ' -)
34-
35- # - name: Delete untagged NGINX Unprivileged Docker images on the GitHub Container Registry
36- # uses: snok/container-retention-policy@4f22ef80902ad409ed55a99dc5133cc1250a0d03 # v3.0.0
37- # with:
38- # account: nginxinc
39- # image-names: nginx-unprivileged
40- # tag-selection: untagged
41- # cut-off: 2y
42- # token: ${{ secrets.GITHUB_TOKEN }}
30+ - name : Delete untagged NGINX Unprivileged Docker images on the GitHub Container Registry
31+ uses : dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16
32+ with :
33+ dry-run : true
34+ package : nginx-unprivileged
35+ delete-ghost-images : true
36+ delete-untagged : true
37+ delete-partial-images : true
38+ delete-orphaned-images : true
39+ older-than : 2 years
40+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments