From 98aeb26276f5c28021de2de60919709c1c30e958 Mon Sep 17 00:00:00 2001 From: Felipe Morato Date: Thu, 8 Aug 2024 11:05:16 +0300 Subject: [PATCH] bump clean-containers to v3.0.0 --- .github/workflows/clean-containers.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/clean-containers.yaml b/.github/workflows/clean-containers.yaml index 451efff..b1a7bbb 100644 --- a/.github/workflows/clean-containers.yaml +++ b/.github/workflows/clean-containers.yaml @@ -20,14 +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:* - skip-tags: latest - 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