From 295f1e94407eaa4144b56044627caccfe315a193 Mon Sep 17 00:00:00 2001 From: Parisa Tejari Date: Thu, 4 Jul 2024 15:09:32 +0200 Subject: [PATCH] upgrade snok action version in ghcr-actions.yml --- .github/workflows/ghcr-actions.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ghcr-actions.yml b/.github/workflows/ghcr-actions.yml index 04651f7..04c06f0 100644 --- a/.github/workflows/ghcr-actions.yml +++ b/.github/workflows/ghcr-actions.yml @@ -17,24 +17,21 @@ jobs: packages: write steps: - 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: sda-doa - filter-tags: PR*, sha-* - cut-off: A week ago UTC - account-type: org - org-name: ${{ github.repository_owner }} + image-tags: "PR* sha-* !latest" + cut-off: 1w + account: ${{ github.repository_owner }} keep-at-least: 1 token: ${{ secrets.GHRC_CNTNR_CLNUP }} - - name: Delete all containers older than treee months, using a wildcard - uses: snok/container-retention-policy@v2.2.1 + - name: Delete all containers older than three months, using a wildcard + uses: snok/container-retention-policy@v3.0.0 with: image-names: sda-doa - filter-tags: v* - cut-off: Three months ago UTC - account-type: org - org-name: ${{ github.repository_owner }} + image-tags: "v* !latest" + cut-off: 3months + account: ${{ github.repository_owner }} keep-at-least: 2 - skip-tags: latest token: ${{ secrets.GHRC_CNTNR_CLNUP }}