Only build :latest when pushing to main branch

This commit is contained in:
Philipp Schmitt 2021-11-28 22:27:33 +01:00
parent 8b5ed2a597
commit 17c611ac0d
No known key found for this signature in database
GPG key ID: DC439C47EACB17F9

View file

@ -86,6 +86,7 @@ jobs:
- name: Build and push
id: docker_build_latest
uses: docker/build-push-action@v2
if: github.ref == 'refs/heads/main'
with:
push: true
file: ./docker/Dockerfile