Do not delete untagged images.

These images could be the release images for different OS/Arch/
This commit is contained in:
Shizun Ge 2024-01-19 23:38:29 -08:00 committed by GitHub
parent 475b6b8ef8
commit 11d0d8ac67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,15 +72,16 @@ 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 # # Untagged images could be the images for different OS/Arch. Do not delete them.
uses: snok/container-retention-policy@v2 # - name: Delete untagged images
with: # uses: snok/container-retention-policy@v2
image-names: endlessh-go # with:
cut-off: One hour ago UTC # image-names: endlessh-go
account-type: personal # cut-off: One hour ago UTC
token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }} # account-type: personal
keep-at-least: 0 # token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }}
untagged-only: True # keep-at-least: 0
skip-tags: latest, development # untagged-only: True
# skip-tags: latest, development
dry-run: False dry-run: False