[clean-ghcr] add a step to clean untagged images

This commit is contained in:
Shizun Ge
2023-06-30 22:02:24 -07:00
parent 1683280c45
commit bd349e28f8

View File

@@ -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