Skip to content

Commit

Permalink
Separate build and push step
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkaergaard committed Sep 18, 2021
1 parent 9a432fc commit 1c46179
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build and push Docker image
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: docker/[email protected]
with:
context: .
Expand Down

0 comments on commit 1c46179

Please sign in to comment.