Skip to content

Commit

Permalink
fix(ci): cleaning docker images had to specify an unique image name
Browse files Browse the repository at this point in the history
  • Loading branch information
sneko committed Feb 26, 2024
1 parent 0bb571e commit 1289648
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/clean-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,25 @@ jobs:
name: Docker images clean
runs-on: ubuntu-latest
steps:
- name: Delete old images
- name: Delete old production images
uses: snok/container-retention-policy@v2
with:
image-names: etabli/etabli-*
image-names: etabli/etabli-main # Since using `token-type: github-token` only 1 image name can be specified
cut-off: A week ago UTC
account-type: org
org-name: betagouv
keep-at-least: 5
skip-tags: latest
token-type: github-token
token: ${{ secrets.GITHUB_TOKEN }}
# - name: Delete old development images
# uses: snok/container-retention-policy@v2
# with:
# image-names: etabli/etabli-dev # Since using `token-type: github-token` only 1 image name can be specified
# cut-off: A week ago UTC
# account-type: org
# org-name: betagouv
# keep-at-least: 5
# skip-tags: latest
# token-type: github-token
# token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1289648

Please sign in to comment.