Skip to content

Commit

Permalink
add clean action
Browse files Browse the repository at this point in the history
to remove untagged images from Github package registry
  • Loading branch information
peterstadler committed Oct 10, 2024
1 parent 39c3596 commit 342bb80
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,20 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

clean:
name: remove untagged images from Github package registry
runs-on: ubuntu-latest
permissions:
packages: write
needs: docker
steps:
- name: ghcr.io cleanup action
uses: dataaxiom/ghcr-cleanup-action@v1
with:
package: mermeid
delete-untagged: true
dry-run: false
validate: true
older-than: 2 weeks
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 342bb80

Please sign in to comment.