Skip to content

Commit

Permalink
Tools: Fixed Docker login for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Jun 12, 2021
1 parent 8459b46 commit 6803f1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/github-actions-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ jobs:
with:
node-version: '12'

# Login to Docker only if we're on a server release tag. If we run this on
# a pull request it will fail because the PR doesn't have access to
# secrets
- uses: docker/login-action@v1
if: runner.os == 'Linux'
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/server-v')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down

0 comments on commit 6803f1c

Please sign in to comment.