Skip to content

Commit

Permalink
WIP #189 Build and push the Docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Remy Suen <[email protected]>
  • Loading branch information
rcjsuen committed Oct 27, 2017
1 parent 7f73c71 commit d27f56b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ script:
after_success:
- npm run coverage
- npm pack
- docker build -t rcjsuen/docker-langserver .
- docker run rcjsuen/docker-langserver --help
- 'if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_NODE_VERSION" == "8" ]; then
docker build -t rcjsuen/docker-langserver . || travis_terminate 1;
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" || travis_terminate 1;
docker push rcjsuen/docker-langserver || travis_terminate 1;
fi'

0 comments on commit d27f56b

Please sign in to comment.