Skip to content

Commit

Permalink
build before publishing to Dockerhub in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
saharj committed Apr 6, 2016
1 parent 96af802 commit 41ef34f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ script:
- npm cache clean
- npm run lint
- npm test
- npm run build
- if [ $DOCKER_HUB_USERNAME ]; then docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD && docker build -t $DOCKER_IMAGE_NAME . && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_IMAGE_NAME:latest $DOCKER_IMAGE_NAME:$TRAVIS_TAG; fi && docker push $DOCKER_IMAGE_NAME; fi

env:
Expand Down

0 comments on commit 41ef34f

Please sign in to comment.