From dd04a837bbae43f49ae0709e04615bfaada49b89 Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Sat, 6 Nov 2021 15:44:20 +0100 Subject: [PATCH] Update docker image build script --- .github/workflows/build-and-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index d49fb5c..4b103f8 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -47,9 +47,10 @@ jobs: - name: Build release image uses: docker/build-push-action@v2 + if: ${{ startsWith(github.ref, 'refs/tags/v') }} with: context: ./ file: ./docker/Dockerfile - push: ${{ github.event_name != 'pull_request' }} + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}