Skip to content

Commit

Permalink
Try with actions/delete-package-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vycius committed Jul 26, 2023
1 parent e2081d5 commit 365e6df
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@ jobs:
image=$(echo ghcr.io/AplinkosMinisterija/biip-zuvinimas-api | awk -F/ '{print $NF}')
echo "image-name=${image}" >> "$GITHUB_OUTPUT"
- name: Delete old images
uses: snok/container-retention-policy@v2
- name: Delete old Docker images
uses: actions/delete-package-versions@v4
with:
image-names: ${{ steps.image.outputs.image-name }}
account-type: org
org-name: AplinkosMinisterija
token: ${{ github.token }}
# token: ${{ secrets.PAT_GHCR_DELETE }}
cut-off: A week ago UTC
filter-tags: development-*
skip-tags: development,latest
filter-include-untagged: true
package-name: ${{ steps.image.outputs.image-name }}
package-type: container
ignore-versions: '^(?!development-).*'

0 comments on commit 365e6df

Please sign in to comment.