Skip to content

Commit

Permalink
Fix docker registry publishing (#72)
Browse files Browse the repository at this point in the history
Publishing is skipped on version tag, because it is explicitly verified, that the ref is a push to master.

This should work. Inspired by https://github.com/docker/build-push-action/blob/master/docs/advanced/tags-labels.md
  • Loading branch information
snicki13 authored Oct 4, 2021
1 parent d066131 commit 71810aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uses: docker/[email protected]
with:
context: .
push: ${{ contains(github.ref, 'master') }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
builder: ${{ steps.buildx.outputs.name }}
Expand Down

0 comments on commit 71810aa

Please sign in to comment.