no cache on tag

This commit is contained in:
plowsof 2024-10-09 19:49:37 +01:00
parent f0d2438e8c
commit e336bd0f7e

View file

@ -109,6 +109,7 @@ jobs:
run: echo "hash=$(sha256sum Dockerfile.linux | awk '{ print $1 }')" >> $GITHUB_OUTPUT run: echo "hash=$(sha256sum Dockerfile.linux | awk '{ print $1 }')" >> $GITHUB_OUTPUT
- uses: actions/cache@v4 - uses: actions/cache@v4
id: docker_cache id: docker_cache
if: "!startsWith(github.ref, 'refs/tags/v')"
with: with:
path: /tmp/linux-docker-image path: /tmp/linux-docker-image
key: linux-docker-${{ steps.dockerfile_linux_hash.outputs.hash }} 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 run: echo "hash=$(sha256sum Dockerfile.windows | awk '{ print $1 }')" >> $GITHUB_OUTPUT
- uses: actions/cache@v4 - uses: actions/cache@v4
id: docker_cache id: docker_cache
if: "!startsWith(github.ref, 'refs/tags/v')"
with: with:
path: /tmp/windows-docker-image path: /tmp/windows-docker-image
key: windows-docker-${{ steps.dockerfile_windows_hash.outputs.hash }} 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 run: echo "hash=$(sha256sum Dockerfile.android | awk '{ print $1 }')" >> $GITHUB_OUTPUT
- uses: actions/cache@v4 - uses: actions/cache@v4
id: docker_cache id: docker_cache
if: "!startsWith(github.ref, 'refs/tags/v')"
with: with:
path: /tmp/android-docker-image path: /tmp/android-docker-image
key: android-docker-${{ steps.dockerfile_android_hash.outputs.hash }} key: android-docker-${{ steps.dockerfile_android_hash.outputs.hash }}