only log in if we're pushing

This commit is contained in:
Half-Shot 2023-03-17 13:54:39 +00:00
parent 7faa3f031e
commit 0dc2512e10

View File

@ -25,6 +25,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
if: ${{ env.PUSH }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}