Skip to content

Commit 11341eb

Browse files
committed
fix(ci): cleaning docker images had to specify an unique image name
1 parent 0bb571e commit 11341eb

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/clean-images.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,21 @@ jobs:
88
name: Docker images clean
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Delete old images
11+
- name: Delete old production images
1212
uses: snok/container-retention-policy@v2
1313
with:
14-
image-names: etabli/etabli-*
14+
image-names: etabli/etabli-main # Since using `token-type: github-token` only 1 image name can be specified
15+
cut-off: A week ago UTC
16+
account-type: org
17+
org-name: betagouv
18+
keep-at-least: 5
19+
skip-tags: latest
20+
token-type: github-token
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Delete old development images
23+
uses: snok/container-retention-policy@v2
24+
with:
25+
image-names: etabli/etabli-dev # Since using `token-type: github-token` only 1 image name can be specified
1526
cut-off: A week ago UTC
1627
account-type: org
1728
org-name: betagouv

0 commit comments

Comments
 (0)