Skip to content

Commit 0e23365

Browse files
authored
Merge pull request freechipsproject#154 from freechipsproject/skip-docker-login-unless-push
Update CI to work better for external PRs
2 parents 109ba61 + b04c7f7 commit 0e23365

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
uses: docker/setup-buildx-action@v1
2121
- name: Login to DockerHub
2222
uses: docker/login-action@v1
23+
if: github.event_name == 'push'
2324
with:
2425
username: ${{ secrets.DOCKERHUB_USERNAME }}
2526
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)