Skip to content

Commit 290714a

Browse files
committed
Keep last 5 container images having a version tag
1 parent 2210755 commit 290714a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ 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 }}
2826
delete_untagged_container_versions:
2927
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)