[workflow] add clean ghcr to remove old dev imsages

This commit is contained in:
Shizun Ge 2023-06-30 21:39:24 -07:00
parent b362647ef3
commit 58c6aa5702

View file

@ -53,3 +53,15 @@ jobs:
ghcr.io/${{ github.repository }}:${{ steps.git.outputs.image_tag }} ghcr.io/${{ github.repository }}:${{ steps.git.outputs.image_tag }}
ghcr.io/${{ github.repository }}:development ghcr.io/${{ github.repository }}:development
- name: Delete old dev images
uses: snok/container-retention-policy@v2
with:
image-names: gantry
cut-off: One day ago UTC
account-type: personal
token: ${{ secrets.TOKEN_DELETE_GHCR_IMAGES }}
keep-at-least: 5
skip-tags: latest, development
filter-tags: "dev-*"
dry-run: False