Skip to content

Commit 316820b

Browse files
committed
trigger cleanup after publishing container
1 parent c87d5a7 commit 316820b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/cleanup-ghcr.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: "Prune old GHCR images"
22

33
on:
4-
schedule:
5-
- cron: '0 2 * * *' # daily at 02:00 UTC
6-
push:
7-
branches: [ docker ]
4+
registry_package:
5+
types: [ published ]
6+
package_type: container
7+
# schedule:
8+
# - cron: '0 2 * * *' # daily at 02:00 UTC
9+
# push:
10+
# branches: [ docker ]
811

912
permissions:
1013
contents: read

0 commit comments

Comments
 (0)