From 18840cbc6ef4fd8e9c48b0053a9f9b68978f4ffc Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 15 Mar 2023 11:43:44 -0400 Subject: [PATCH] Skip pushing containers on forks (#24106) --- .github/workflows/build-image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 9d03773a5..2440b9ae7 100644 --- a/.github/workflows/build-image.yml +++ b/.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