From 300057cbb42a43431812582a51bd03e3275f85ea Mon Sep 17 00:00:00 2001 From: hustcer Date: Thu, 31 Oct 2024 13:39:06 +0800 Subject: [PATCH] Disable image cleanup --- .github/workflows/nightly-alpine.yaml | 30 ++++++++++++------------- .github/workflows/release-nu-image.yaml | 30 ++++++++++++------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/nightly-alpine.yaml b/.github/workflows/nightly-alpine.yaml index 853f4e753..54049d02b 100644 --- a/.github/workflows/nightly-alpine.yaml +++ b/.github/workflows/nightly-alpine.yaml @@ -66,18 +66,18 @@ jobs: tags: | ghcr.io/nushell/nushell:${{ env.NU_VERSION }} - # cleanup: - # runs-on: ubuntu-latest - # permissions: - # contents: read - # packages: write - # needs: build-and-push-Nu - # steps: - # - name: Delete all containers from repository without tags - # uses: Chizkiyahu/delete-untagged-ghcr-action@v4 - # with: - # owner_type: org - # untagged_only: true - # repository: 'nushell/nushell' - # repository_owner: 'nushell' - # token: ${{ secrets.GITHUB_TOKEN }} + cleanup: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + needs: build-and-push-Nu + steps: + - name: Delete all containers from repository without tags + uses: Chizkiyahu/delete-untagged-ghcr-action@v4 + with: + owner_type: user + untagged_only: true + repository_owner: 'nushell' + repository: 'nushell/nushell' + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-nu-image.yaml b/.github/workflows/release-nu-image.yaml index b777bcd72..573216d8e 100644 --- a/.github/workflows/release-nu-image.yaml +++ b/.github/workflows/release-nu-image.yaml @@ -94,18 +94,18 @@ jobs: ghcr.io/nushell/nushell:${{ env.NU_VERSION }} ghcr.io/nushell/nushell:${{ env.NU_VERSION }}-alpine - # cleanup: - # runs-on: ubuntu-latest - # permissions: - # contents: read - # packages: write - # needs: build-and-push-Nu - # steps: - # - name: Delete all containers from repository without tags - # uses: Chizkiyahu/delete-untagged-ghcr-action@v4 - # with: - # owner_type: org - # untagged_only: true - # repository: 'nushell/nushell' - # repository_owner: 'nushell' - # token: ${{ secrets.GITHUB_TOKEN }} + cleanup: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + needs: build-and-push-Nu + steps: + - name: Delete all containers from repository without tags + uses: Chizkiyahu/delete-untagged-ghcr-action@v4 + with: + owner_type: user + untagged_only: true + repository_owner: 'nushell' + repository: 'nushell/nushell' + token: ${{ secrets.GITHUB_TOKEN }}