chore: Docker login.

This commit is contained in:
Fernandez Ludovic 2019-04-27 19:03:17 +02:00
parent 69167501f1
commit 6bec017b3b

View File

@ -4,7 +4,8 @@ go:
- 1.11.x
- 1.x
sudo: false
services:
- docker
env:
- GO111MODULE=on
@ -23,6 +24,13 @@ install:
- echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION"
- go mod download
before_deploy:
- >
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
fi
deploy:
- provider: script
skip_cleanup: true