Skip to content

Commit

Permalink
ci: auto delete untagged pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Itsusinn committed Apr 22, 2024
1 parent d800ede commit 08e0108
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,10 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ steps.get-ownername.outputs.OWNER }}/tuic-server:latest

- name: Delete all images from package without tags
uses: pcasteran/ghcr-cleaning-action@v1
with:
user: ${{ steps.get-ownername.outputs.OWNER }}
package: tuic-server
password: ${{ secrets.SECRET_PAT }}
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,10 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ steps.get-ownername.outputs.OWNER }}/tuic-server:${{ steps.get-ver.outputs.TAG }}

- name: Delete all images from package without tags
uses: pcasteran/ghcr-cleaning-action@v1
with:
user: ${{ steps.get-ownername.outputs.OWNER }}
package: tuic-server
password: ${{ secrets.SECRET_PAT }}

0 comments on commit 08e0108

Please sign in to comment.