From 3c46e30521ed1c5039a1f670786c4b5d4dea92eb Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Wed, 26 Jun 2024 09:58:23 +0200 Subject: [PATCH 1/2] fix: snok/container-retention-policy params after new major release --- .github/workflows/clean-ghcr.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/clean-ghcr.yaml b/.github/workflows/clean-ghcr.yaml index 7cb1cd0..e7f060c 100644 --- a/.github/workflows/clean-ghcr.yaml +++ b/.github/workflows/clean-ghcr.yaml @@ -18,10 +18,8 @@ jobs: - name: Delete untagged container images according to cut-off uses: snok/container-retention-policy@4f22ef80902ad409ed55a99dc5133cc1250a0d03 # v3.0.0 with: + account: statnett image-names: ${{ github.event.repository.name }} cut-off: ${{ inputs.cut-off }} - account-type: org - org-name: statnett - untagged-only: true + tag-selection: untagged token: ${{ secrets.GITHUB_TOKEN }} - token-type: github-token From 9fe3914ad6a46ba611eae7e8af9480c71a06cac7 Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Wed, 26 Jun 2024 09:59:37 +0200 Subject: [PATCH 2/2] less diff --- .github/workflows/clean-ghcr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clean-ghcr.yaml b/.github/workflows/clean-ghcr.yaml index e7f060c..415e552 100644 --- a/.github/workflows/clean-ghcr.yaml +++ b/.github/workflows/clean-ghcr.yaml @@ -18,8 +18,8 @@ jobs: - name: Delete untagged container images according to cut-off uses: snok/container-retention-policy@4f22ef80902ad409ed55a99dc5133cc1250a0d03 # v3.0.0 with: - account: statnett image-names: ${{ github.event.repository.name }} cut-off: ${{ inputs.cut-off }} + account: statnett tag-selection: untagged token: ${{ secrets.GITHUB_TOKEN }}