Skip to content

Commit 5eb7d9c

Browse files
authored
chore: delete untagged images
1 parent 4b57af0 commit 5eb7d9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/image-cleanup.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Cleanup Images
33

44
on:
55
schedule:
6-
- cron: "30 1 * * *"
6+
- cron: "0 0 * * 3"
77
pull_request:
88
workflow_dispatch:
99

@@ -13,6 +13,8 @@ jobs:
1313
delete-images:
1414
runs-on: ubuntu-latest
1515
permissions:
16+
# dataaxiom/ghcr-cleanup-action needs packages write permission
17+
# to delete untagged and orphaned images
1618
packages: write
1719
steps:
1820
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
@@ -24,5 +26,7 @@ jobs:
2426
ghcr.io:443
2527
- uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16
2628
with:
29+
dry-run: true
2730
delete-orphaned-images: true
31+
delete-untagged: true
2832
packages: amp-devcontainer,amp-devcontainer-cpp,amp-devcontainer-rust

0 commit comments

Comments
 (0)