forked from cartsnitch/cartsnitch
Fix: make Docker Hub auth conditional
Docker Hub login step is now conditional on secret existence to avoid failures when org secrets are not yet provisioned. Refs: CAR-77 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -69,6 +69,7 @@ jobs:
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
if: ${{ secrets.DOCKERHUB_USERNAME != '' }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
|
||||
Reference in New Issue
Block a user