Only log in to DockerHub on `push` event

This commit is contained in:
Eric Zhang 2022-02-19 10:49:52 -05:00
parent 66f1f9d05a
commit 124ff15d3d
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ jobs:
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
if: github.event_name == 'push'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}