From 78ba23e8e250181f4021038bb6540ace7ef020e3 Mon Sep 17 00:00:00 2001 From: Dave Dunkin Date: Wed, 31 Jan 2024 11:31:00 -0700 Subject: [PATCH] Don't push images on pull request. --- .github/workflows/docker-publish-windows.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-publish-windows.yml b/.github/workflows/docker-publish-windows.yml index e23d33c..64bacbb 100644 --- a/.github/workflows/docker-publish-windows.yml +++ b/.github/workflows/docker-publish-windows.yml @@ -53,6 +53,7 @@ jobs: working-directory: windows - name: Push Docker image + if: ${{ github.event_name != 'pull_request' }} run: | docker push ${{ env.REGISTRY }}/${{ steps.image_name.outputs.lowercase }}:${{ matrix.tag }} working-directory: windows @@ -63,6 +64,7 @@ jobs: working-directory: windows - name: Push Xamarin Docker image + if: ${{ github.event_name != 'pull_request' }} run: | docker push ${{ env.REGISTRY }}/${{ steps.image_name.outputs.lowercase }}:${{ matrix.tag }}-xamarin working-directory: windows