From 1123a2a63c31d84dd89b1c4538729b07b4c8274f Mon Sep 17 00:00:00 2001 From: Felipe Morato Date: Thu, 8 Aug 2024 10:23:51 +0300 Subject: [PATCH] bump clean-containers to v3.0.0 --- .github/workflows/clean-containers.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/clean-containers.yaml b/.github/workflows/clean-containers.yaml index 5132ea7..b1a7bbb 100644 --- a/.github/workflows/clean-containers.yaml +++ b/.github/workflows/clean-containers.yaml @@ -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