Skip to content

Commit ca5c05c

Browse files
committed
chore: remove docker credentials for PRs
1 parent 9bc3c25 commit ca5c05c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ env:
77
- version=8
88
- version=11
99
script:
10-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
10+
- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
11+
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin;
12+
fi
1113
- make test-docker
1214
deploy:
1315
- provider: script

0 commit comments

Comments
 (0)