Fix Docker Registry push

Pipe the Docker registry password so that docker login doesn't block

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2018-04-15 23:41:12 +03:00 committed by Alex Ellis
parent cb2e3c3251
commit 20d589f99f

View File

@ -22,7 +22,7 @@ script:
after_success:
- if [ ! -z "$TRAVIS_TAG" ] ; then
docker tag $DOCKER_NS/gateway:latest-dev $DOCKER_NS/gateway:$TRAVIS_TAG;
docker login -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD;
echo $DOCKER_PASSWORD | docker login -u=$DOCKER_USERNAME --password-stdin;
docker push $DOCKER_NS/gateway:$TRAVIS_TAG;
fi