High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: don't push on forks (#16165)
bo0tzz9eab770e7914
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex f703d479fc..f2a7afbac2 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -167,14 +167,12 @@ jobs:context: ${{ env.context }}file: ${{ env.file }}platforms: ${{ matrix.platforms }}- # Skip pushing when PR from a fork- push: ${{ !github.event.pull_request.head.repo.fork }}labels: ${{ steps.metadata.outputs.labels }}cache-to: type=registry,ref=${{ env.GHCR_REPO }}-build-cache:${{ env.PLATFORM_PAIR }}-${{ matrix.device }}-${{ env.CACHE_KEY_SUFFIX }},mode=max,compression=zstdcache-from: |type=registry,ref=${{ env.GHCR_REPO }}-build-cache:${{ env.PLATFORM_PAIR }}-${{ matrix.device }}-${{ env.CACHE_KEY_SUFFIX }}type=registry,ref=${{ env.GHCR_REPO }}-build-cache:${{ env.PLATFORM_PAIR }}-${{ matrix.device }}-main- outputs: type=image,"name=${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=true+ outputs: type=image,"name=${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=${{ !github.event.pull_request.head.repo.fork }}build-args: |DEVICE=${{ matrix.device }}BUILD_ID=${{ github.run_id }}@@ -321,14 +319,12 @@ jobs:context: ${{ env.context }}file: ${{ env.file }}platforms: ${{ matrix.platform }}- # Skip pushing when PR from a fork- push: ${{ !github.event.pull_request.head.repo.fork }}labels: ${{ steps.metadata.outputs.labels }}cache-to: type=registry,ref=${{ env.GHCR_REPO }}-build-cache:${{ env.PLATFORM_PAIR }}-${{ env.CACHE_KEY_SUFFIX }},mode=max,compression=zstdcache-from: |type=registry,ref=${{ env.GHCR_REPO }}-build-cache:${{ env.PLATFORM_PAIR }}-${{ env.CACHE_KEY_SUFFIX }}type=registry,ref=${{ env.GHCR_REPO }}-build-cache:${{ env.PLATFORM_PAIR }}-main- outputs: type=image,"name=${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=true+ outputs: type=image,"name=${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=${{ !github.event.pull_request.head.repo.fork }}build-args: |DEVICE=cpuBUILD_ID=${{ github.run_id }}