Update docker image build script

This commit is contained in:
Khanh Ngo 2021-11-06 15:44:20 +01:00
parent 5bb1a7ee29
commit dd04a837bb
No known key found for this signature in database
GPG Key ID: 920A7D645DCB23DF

View File

@ -47,9 +47,10 @@ jobs:
- name: Build release image - name: Build release image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with: with:
context: ./ context: ./
file: ./docker/Dockerfile file: ./docker/Dockerfile
push: ${{ github.event_name != 'pull_request' }} push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}