Skip to content

Commit

Permalink
Merge pull request #20 from CSCfi/feature/update-clean-containers
Browse files Browse the repository at this point in the history
bump clean-containers to v3.0.0
  • Loading branch information
csc-felipe authored Aug 8, 2024
2 parents 18f4953 + 1123a2a commit abef559
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/clean-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ jobs:
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Delete 'PR' containers older than a week
uses: snok/container-retention-policy@v2.2.1
uses: snok/container-retention-policy@v3.0.0
with:
image-names: ${{ env.REGISTRY }}/${{ env.REPO }}
filter-tags: sha-*,sha256:*
cut-off: A week ago UTC
account-type: org
org-name: ${{ github.repository_owner }}
keep-at-least: 1
token: ${{ secrets.GH_REPO_TOKEN }}
image-names: ${{ env.REPO }}
image-tags: "sha-* sha256:* !latest"
cut-off: 1w
account: ${{ github.repository_owner }}
keep-n-most-recent: 1
token: ${{ secrets.GITHUB_TOKEN }}
timestamp-to-use: updated_at

0 comments on commit abef559

Please sign in to comment.