8000 chore: remove docker credentials for PRs · helloworld1812/twilio-python@f47a753 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit f47a753

Browse files
committed
chore: remove docker credentials for PRs
1 parent a728d3a commit f47a753

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ install:
1616
- make test-install
1717
script:
1818
- make test
19+
- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
20+
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin;
21+
fi
1922
deploy:
2023
- provider: script
21-
script: echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin && make docker-build && make docker-push
24+
script: make docker-build && make docker-push
2225
skip_cleanup: true
2326
on:
2427
tags: true

0 commit comments

Comments
 (0)
0