From 67cc9c9e0949af5e894b9615f0e69c0569f9adce Mon Sep 17 00:00:00 2001 From: Vedran Kasalica Date: Tue, 3 Sep 2024 00:09:08 +0200 Subject: [PATCH] Try to clean non latest only docker imgs --- .github/workflows/clean-containers.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/clean-containers.yaml b/.github/workflows/clean-containers.yaml index 302a0e4..78f0642 100644 --- a/.github/workflows/clean-containers.yaml +++ b/.github/workflows/clean-containers.yaml @@ -15,15 +15,13 @@ jobs: REGISTRY: ghcr.io steps: - - name: Set REPO environment variable - run: echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV - - name: Delete 'PR' containers older than a week uses: snok/container-retention-policy@v3.0.0 with: account: sanctuuary - image-names: "!latest" + image-names: "!empty" token: ${{ secrets.GH_REPO_TOKEN }} + image-tags: "!latest" cut-off: 2w 3d dry-run: true