[clean-ghcr] add a step to clean untagged images
This commit is contained in:
11
.github/workflows/on-push-main.yml
vendored
11
.github/workflows/on-push-main.yml
vendored
@@ -68,4 +68,15 @@ jobs:
|
||||
skip-tags: latest, development
|
||||
filter-tags: "dev-*"
|
||||
dry-run: False
|
||||
- name: Delete untagged images
|
||||
uses: snok/container-retention-policy@v2
|
||||
with:
|
||||
image-names: gantry
|
||||
cut-off: One hour ago UTC
|
||||
account-type: personal
|
||||
token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }}
|
||||
keep-at-least: 1
|
||||
untagged-only: True
|
||||
skip-tags: latest, development
|
||||
dry-run: False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user