From e336bd0f7e103610bba4d43907f1bd32d70d37f5 Mon Sep 17 00:00:00 2001 From: plowsof Date: Wed, 9 Oct 2024 19:49:37 +0100 Subject: [PATCH] no cache on tag --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17703d9f..a69988ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,6 +109,7 @@ jobs: run: echo "hash=$(sha256sum Dockerfile.linux | awk '{ print $1 }')" >> $GITHUB_OUTPUT - uses: actions/cache@v4 id: docker_cache + if: "!startsWith(github.ref, 'refs/tags/v')" with: path: /tmp/linux-docker-image key: linux-docker-${{ steps.dockerfile_linux_hash.outputs.hash }} @@ -154,6 +155,7 @@ jobs: run: echo "hash=$(sha256sum Dockerfile.windows | awk '{ print $1 }')" >> $GITHUB_OUTPUT - uses: actions/cache@v4 id: docker_cache + if: "!startsWith(github.ref, 'refs/tags/v')" with: path: /tmp/windows-docker-image key: windows-docker-${{ steps.dockerfile_windows_hash.outputs.hash }} @@ -197,6 +199,7 @@ jobs: run: echo "hash=$(sha256sum Dockerfile.android | awk '{ print $1 }')" >> $GITHUB_OUTPUT - uses: actions/cache@v4 id: docker_cache + if: "!startsWith(github.ref, 'refs/tags/v')" with: path: /tmp/android-docker-image key: android-docker-${{ steps.dockerfile_android_hash.outputs.hash }}