Skip to content

Commit

Permalink
fix docker login conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jul 2, 2024
1 parent ffeddf7 commit 4f73d30
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 @@ -113,7 +113,7 @@ jobs:

- name: Login to Docker Hub registry
uses: docker/login-action@v2
if: github.repository == 'zeta-chain/node'
if: (github.event_name == 'push' && github.repository == 'zeta-chain/node') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'zeta-chain/node')
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_READ_ONLY }}
Expand Down

0 comments on commit 4f73d30

Please sign in to comment.