Skip to content

Commit 25c3de4

Browse files
committed
chore: remove docker credentials for PRs
1 parent c905e05 commit 25c3de4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ before_script:
1818
- chmod +x ./cc-test-reporter
1919
- "./cc-test-reporter before-build"
2020
script:
21-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
21+
- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
22+
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
23+
fi
2224
- make test-docker
2325
after_script:
2426
- make test-install

0 commit comments

Comments
 (0)