High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: always set cache-key-base during image build (#18168)
bo0tzzff181cf346c6
diff --git a/.github/actions/image-build/action.yml b/.github/actions/image-build/action.ymlindex 64a06ec141..276bbd22cf 100644--- a/.github/actions/image-build/action.yml+++ b/.github/actions/image-build/action.yml@@ -66,13 +66,13 @@ runs:SUFFIX: ${{ steps.cache-key-suffix.outputs.suffix }}PLATFORM_PAIR: ${{ steps.prepare.outputs.platform-pair }}run: |+ HASH=$(sha256sum <<< "${BUILD_ARGS}" | cut -d' ' -f1)+ CACHE_KEY="${PLATFORM_PAIR}-${HASH}"+ echo "cache-key-base=${CACHE_KEY}" >> $GITHUB_OUTPUTif [[ "${{ github.event.pull_request.head.repo.fork }}" == "true" ]]; then# Essentially just ignore the cache output (forks can't write to registry cache)echo "cache-to=type=local,dest=/tmp/discard,ignore-error=true" >> $GITHUB_OUTPUTelse- HASH=$(sha256sum <<< "${BUILD_ARGS}" | cut -d' ' -f1)- CACHE_KEY="${PLATFORM_PAIR}-${HASH}"- echo "cache-key-base=${CACHE_KEY}" >> $GITHUB_OUTPUTecho "cache-to=type=registry,ref=${IMAGE}-build-cache:${CACHE_KEY}-${SUFFIX},mode=max,compression=zstd" >> $GITHUB_OUTPUTfi