Skip to content

Commit b2e2bb3

Browse files
committed
feat: Update GHCR action
Co-Authored-By: Alessandro Fael Garcia <[email protected]>
1 parent 2ab76ae commit b2e2bb3

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/image-cleanup.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff 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+
package: nginx-unprivileged
34+
delete-ghost-images: true
35+
delete-untagged: true
36+
delete-partial-images: true
37+
delete-orphaned-images: true
38+
older-than: 2 years
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
validate: true

0 commit comments

Comments
 (0)