Skip to content

Commit

Permalink
build-image action: do not login to dockerhub on pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsn committed Jul 17, 2024
1 parent 7df4d50 commit 0f44d75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
Expand Down

0 comments on commit 0f44d75

Please sign in to comment.