Skip to content

Commit

Permalink
Travis: Perform docker login in before_install:
Browse files Browse the repository at this point in the history
  • Loading branch information
pdhar-tibco committed Oct 4, 2016
1 parent 1d4bd71 commit e74ba4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ git:
# Do a github login using token
before_install:
- "echo -e \"machine github.com\n login ${GITHUB_USER_TOKEN}\" >> ~/.netrc"
- "docker login -u=\"${DOCKER_USERNAME}\" -p=\"${DOCKER_PASSWORD}\" "

script:
- touch flogo-cli.tgz
Expand All @@ -33,7 +34,6 @@ after_script:

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

0 comments on commit e74ba4c

Please sign in to comment.