Skip to content

Commit e74ba4c

Browse files
committed
Travis: Perform docker login in before_install:
1 parent 1d4bd71 commit e74ba4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ git:
1111
# Do a github login using token
1212
before_install:
1313
- "echo -e \"machine github.com\n login ${GITHUB_USER_TOKEN}\" >> ~/.netrc"
14+
- "docker login -u=\"${DOCKER_USERNAME}\" -p=\"${DOCKER_PASSWORD}\" "
1415

1516
script:
1617
- touch flogo-cli.tgz
@@ -33,7 +34,6 @@ after_script:
3334

3435
after_success:
3536
- "if [ \"${TRAVIS_BRANCH}\" == \"master\" ]; then
36-
docker login -u=\"${DOCKER_USERNAME}\" -p=\"${DOCKER_PASSWORD}\";
3737
source ${TRAVIS_BUILD_DIR}/flogo-cicd/scripts/init.sh ;
3838
flogo::module::postbuild flogo-cli flogo-cli ;
3939
fi"

0 commit comments

Comments
 (0)