Skip to content

Commit

Permalink
Pipe docker password to docker command
Browse files Browse the repository at this point in the history
This may or may not work with Travis
  • Loading branch information
crswty committed Nov 4, 2019
1 parent 4950f90 commit 8f2cbe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/ci-push
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ docker tag travis-build-image $VERSION_TAG
echo "Tagging: $LATEST_TAG"
docker tag travis-build-image $LATEST_TAG

docker login --username "$DOCKER_USERNAME" --password "$DOCKER_PASSWORD"
#echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
#docker login --username "$DOCKER_USERNAME" --password "$DOCKER_PASSWORD"
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin

echo "Pushing tag: $VERSION_TAG"
docker push $VERSION_TAG
Expand Down

0 comments on commit 8f2cbe6

Please sign in to comment.