Skip to content

Commit 5429d0a

Browse files
committed
Travis docker login with --password-stdin
1 parent c2c749b commit 5429d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ script:
2828
- docker build -t $REPO:$TAG -f Dockerfile .
2929

3030
after_success:
31-
- docker login -u $DOCKER_USER -p $DOCKER_PASS
31+
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
3232
- if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then
3333
docker tag $REPO:$TAG $REPO:$TRAVIS_BUILD_NUMBER; docker push $REPO:$TRAVIS_BUILD_NUMBER;
3434
fi

0 commit comments

Comments
 (0)