Skip to content

Commit

Permalink
ci: docker: only try to login if user is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Aug 5, 2023
1 parent c413e3e commit f0b11e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:

- name: Login to Docker Hub
uses: docker/login-action@v2
if: ${{ github.repository_owner == 'cafe-desktop' }}
env:
DOCKER_USER: ${{ secrets.DOCKER_HUB_USERNAME }}
if: ${{ env.DOCKER_USER != '' }}
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
Expand Down

0 comments on commit f0b11e2

Please sign in to comment.