[clean-ghcr] add a step to clean untagged images
This commit is contained in:
parent
1683280c45
commit
bd349e28f8
1 changed files with 11 additions and 0 deletions
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
|
skip-tags: latest, development
|
||||||
filter-tags: "dev-*"
|
filter-tags: "dev-*"
|
||||||
dry-run: False
|
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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue