ci: do not login to docker registry in PRs

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2020-10-04 15:01:45 +02:00
parent 3b385ecf4a
commit 4a1fd77166
No known key found for this signature in database
GPG key ID: 34CC109EB5ED1C2A

View file

@ -122,6 +122,7 @@ jobs:
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
if: github.event_name == 'push'
- name: Build and Push - name: Build and Push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2