File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 8
8
name : Docker images clean
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - name : Delete old images
11
+ - name : Delete old production images
12
12
uses : snok/container-retention-policy@v2
13
13
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
15
26
cut-off : A week ago UTC
16
27
account-type : org
17
28
org-name : betagouv
You can’t perform that action at this time.
0 commit comments