Skip to content

Commit

Permalink
Add additional step to delete all untagged versions
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Jul 26, 2024
1 parent d18865f commit 2424484
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/prune-old-container-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ jobs:
prune:
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v5
- name: Delete all untagged versions
uses: actions/delete-package-versions@v5
with:
package-name: "${{ github.event.repository.name }}/gitlab"
package-type: container
# never delete release versions or latest
ignore-versions: "^(v.*|latest)$"
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'
- name: Delete all but latest 3 feature branch versions
uses: actions/delete-package-versions@v5
with:
package-name: "${{ github.event.repository.name }}/gitlab"
package-type: container
Expand Down

0 comments on commit 2424484

Please sign in to comment.