Skip to content

Commit

Permalink
feat: make DockerHub login optional
Browse files Browse the repository at this point in the history
...for Dockerfile workflow.
  • Loading branch information
stempler committed Nov 20, 2023
1 parent 57e70a5 commit 2d2e709
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ jobs:
images: ${{ inputs.image }}

- name: Login to DockerHub
if: env.DOCKER_HUB_USERNAME
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit 2d2e709

Please sign in to comment.