Skip to content

Commit

Permalink
add clean job
Browse files Browse the repository at this point in the history
to remove untagged images from the GitHub package registry
  • Loading branch information
peterstadler committed Oct 2, 2024
1 parent 9332145 commit dd799e7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/maven_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,16 @@ jobs:
password: ${{ secrets.VIFEBOT_DOCKERHUB_TOKEN }}
repository: edirom/meigarage
short-description: ${{ github.event.repository.description }}

clean:
name: remove untagged images from Github package registry
runs-on: ubuntu-latest
needs: docker
steps:
- name: Delete Package Versions
uses: actions/[email protected]
with:
package-name: 'meigarage'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'

0 comments on commit dd799e7

Please sign in to comment.