From c85a5dac244a3a0008c9a1197e740e7c53b5b94f Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Sat, 6 Nov 2021 15:25:20 +0100 Subject: [PATCH] Update docker image build script --- .github/workflows/build-and-publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 46e92ef..2428b60 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -46,9 +46,8 @@ jobs: - name: Build release image uses: docker/build-push-action@v2 - if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }} with: context: ./ file: ./docker/Dockerfile - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }}