Only login to Dockerhub on image push (#515)

This commit is contained in:
Matthias 2022-02-18 10:49:47 +01:00 committed by GitHub
parent 812663d832
commit d821168f24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ jobs:
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
if: ${{ github.repository_owner == 'lycheeverse' }}
if: ${{ github.repository_owner == 'lycheeverse' && github.event_name != 'pull_request' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}