Skip to content

Commit

Permalink
Do not delete untagged images.
Browse files Browse the repository at this point in the history
These images could be the release images for different OS/Arch/
  • Loading branch information
shizunge committed Jan 20, 2024
1 parent 475b6b8 commit 11d0d8a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@ jobs:
skip-tags: latest, development
filter-tags: "dev-*"
dry-run: False
- name: Delete untagged images
uses: snok/container-retention-policy@v2
with:
image-names: endlessh-go
cut-off: One hour ago UTC
account-type: personal
token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }}
keep-at-least: 0
untagged-only: True
skip-tags: latest, development
# # Untagged images could be the images for different OS/Arch. Do not delete them.
# - name: Delete untagged images
# uses: snok/container-retention-policy@v2
# with:
# image-names: endlessh-go
# cut-off: One hour ago UTC
# account-type: personal
# token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }}
# keep-at-least: 0
# untagged-only: True
# skip-tags: latest, development
dry-run: False

0 comments on commit 11d0d8a

Please sign in to comment.