From b50d540e0227739dbf893e5a1128d5ebbb20beda Mon Sep 17 00:00:00 2001 From: Marukome0743 Date: Sun, 31 Dec 2023 21:30:53 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7chore:=20no=20push=20docker=20image?= =?UTF-8?q?=20on=20PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/push-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 5fabdb2a..9fa290df 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -74,7 +74,8 @@ jobs: with: context: . platforms: linux/amd64,linux/arm64 - push: ${{ github.repository_owner == env.REPOSITORY_OWNER }} + push: ${{ github.repository_owner == env.REPOSITORY_OWNER && github.event_name != 'pull_request_target' }} + load: ${{ github.event_name == 'pull_request_target' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=registry,ref=${{ env.REPOSITORY }}:main