From 683e2bd99ea0f773885f54a6a8fc10d50de8b961 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Tue, 12 Dec 2023 09:13:24 +0000 Subject: [PATCH] :bug: fix image build cache --- .github/workflows/release.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c98d75b..8261b78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,7 +78,7 @@ jobs: id: image run: | echo "IMAGE=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT - echo "SCOPE=${{ env.GITHUB_REF_NAME }}-${{ matrix.python_version }}${{ matrix.python_variant }}-${{ matrix.platform }}" >> $GITHUB_OUTPUT + echo "SCOPE=${{ hashFiles('**/poetry.lock') }}-${{ matrix.python_version }}${{ matrix.python_variant }}-${{ matrix.platform }}" >> $GITHUB_OUTPUT - name: Generate Labels uses: docker/metadata-action@v5 @@ -146,13 +146,6 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Login to Github Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Generate Image Name id: image run: | @@ -164,7 +157,6 @@ jobs: with: images: | ${{ github.repository }} - ghcr.io/${{ github.repository }} flavor: | suffix=-py${{ matrix.python_version }}${{ matrix.python_variant }},onlatest=true tags: | @@ -187,7 +179,6 @@ jobs: with: images: | ${{ github.repository }} - ghcr.io/${{ github.repository }} flavor: | suffix=${{ matrix.python_variant }},onlatest=true tags: |