Sfoglia il codice sorgente

Skip pushing containers on forks (#24106)

Nick Schonning 1 anno fa
parent
commit
18840cbc6e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      .github/workflows/build-image.yml

+ 3 - 1
.github/workflows/build-image.yml

@@ -55,7 +55,9 @@ jobs:
         with:
           context: .
           platforms: linux/amd64,linux/arm64
-          push: ${{ github.event_name != 'pull_request' }}
+          provenance: false
+          builder: ${{ steps.buildx.outputs.name }}
+          push: ${{ github.repository == 'mastodon/mastodon' && github.event_name != 'pull_request' }}
           tags: ${{ steps.meta.outputs.tags }}
           labels: ${{ steps.meta.outputs.labels }}
           cache-from: type=gha