Skip to content

Commit 90e4eee

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

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/image-cleanup.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ jobs:
3232
# run: |
3333
# package=$(docker manifest inspect ghcr.io/nginxinc/nginx-unprivileged | jq -r '.manifests.[] | .digest' | paste -s -d ' ' -)
3434

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 }}
35+
- name: Delete untagged NGINX Unprivileged Docker images on the GitHub Container Registry
36+
uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16
37+
with:
38+
dry-run: true
39+
package: nginx-unprivileged
40+
delete-ghost-images: true
41+
delete-untagged: true
42+
delete-partial-images: true
43+
delete-orphaned-images: true
44+
older-than: 2 years
45+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)