Skip to content

Commit

Permalink
Limit Docker push to master branch and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamuko committed Dec 12, 2022
1 parent 7391709 commit b9d72fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
with:
file: Dockerfile
context: .
push: true
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit b9d72fc

Please sign in to comment.