push only if master

This commit is contained in:
Michel Roux 2023-06-25 22:43:31 +02:00
parent 3e5550cf92
commit 6b73b1372d

View File

@ -30,7 +30,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: https://github.com/docker/build-push-action@v4
with:
push: true
push: ${{ github.ref == 'refs/heads/master' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}