Skip to content

Commit

Permalink
don't try to login to docker hub for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Jan 30, 2024
1 parent 371ce0d commit b345319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# Docker
- name: Login to Container Registry
uses: docker/login-action@v3
if: ${{ matrix.java == '17' }}
if: ${{ matrix.java == '17' && github.event_name != 'pull_request' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down

0 comments on commit b345319

Please sign in to comment.