Skip to content

Commit

Permalink
login only when we need to push the images
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Jul 8, 2024
1 parent 0a4826e commit aefb694
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker_build_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
uses: actions/checkout@v4

- name: Login to Docker Hub
if: steps.skip-push.outputs.skip-push == 'true'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -113,6 +114,7 @@ jobs:
uses: actions/checkout@v4

- name: Login to Docker Hub
if: steps.skip-push.outputs.skip-push == 'true'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down

0 comments on commit aefb694

Please sign in to comment.