Only login to dockerhub if username is provided via secret

This commit is contained in:
dmunozv04
2025-08-30 19:56:15 +02:00
committed by David
parent 3b7617ef14
commit 27ecc54d93

View File

@@ -53,7 +53,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && env.DOCKERHUB_USERNAME != ''
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}