Skip to content

Commit

Permalink
Push images when the build was triggered by a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed Jun 10, 2024
1 parent 1c35ddf commit 51d5ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: '.'
push: ${{ github.ref == 'refs/heads/main' }}
push: ${{ github.ref == 'refs/heads/main' || github.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Expand Down

0 comments on commit 51d5ae2

Please sign in to comment.