Skip to content

Commit 95acdcd

Browse files
authored
Merge pull request #437 from symflower/fix-container-deletion
Keep last 5 container images having a version tag
2 parents 2210755 + cdd3a89 commit 95acdcd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/job-container-image-cleanup.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ jobs:
1717
with:
1818
container: ${{ inputs.container }}
1919
keep-tags-regexes: |
20-
^[1-9]\d*\.\d+.\d+$
20+
^v[1-9]\d*\.\d+.\d+$
2121
latest
2222
main
23-
keep-younger-than: 14 # In days.
23+
keep-last: 5
2424
organization: ${{ inputs.organization }}
25-
prune-tags-regexes: |
26-
^.+$
2725
token: ${{ github.token }}
26+
dry-run: true
2827
delete_untagged_container_versions:
2928
runs-on: ubuntu-latest
3029
steps:

0 commit comments

Comments
 (0)