This repository has been archived by the owner on Aug 21, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup to build docker images on TravisCI
- Loading branch information
Showing
4 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,15 @@ | |||
language: node_js | language: node_js | ||
node_js: | node_js: | ||
- "0.10" | - "4.7.2" | ||
before_script: | before_script: | ||
- npm install -g gulp | - npm install -g gulp | ||
- npm install -g bower | - npm install -g bower | ||
- npm install | - npm install | ||
- bower install | - bower install | ||
script: gulp clean build | script: make build | ||
services: | |||
- docker | |||
env: | |||
global: | |||
- secure: "VBGA/BGX7MPQ+h0OyAssRvIpyMN4rWk8CyBxvL1mgw43iLZYEo6PYEGtXWnMBxgh9NMT5oymkU6PsvRfVbCbpAIdJHGe7fbM1xK7wRd8OS6VpRJWFcwVeyE56qat+I/KSnYrQ4eJTZ6Ii3h3otoDRfW5RLrw2VHRZ+//Hr6sgVY=" | |||
- secure: "FDsSnzJEwnYJ6OQEA8MuxFuWMAcAI6pR6hRCWIpSzDK1gk2xx3tG0m39WijAUiLmUF8GxrpB1h0dmXpvbG1OHNLC97m273Qr8jAXIzHU3HqJ0BhL4sT+gPIDYf2stbYTZMieGQM8yC/OQWIckpJThEqtoGWHSJAzmQyEJmNbidg=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
build: | |||
gulp clean | |||
gulp build | |||
@if [ "$TRAVIS" == "true" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then \ | |||
docker build -t netflixoss/vector . ; \ | |||
if [ "$TRAVIS_TAG" != "" ]; then \ | |||
docker tag netflixoss/vector:latest netflixoss/vector:$TRAVIS_TAG; \ | |||
fi; \ | |||
docker images; \ | |||
docker login -u=${dockerhubUsername} -p=${dockerhubPassword}; \ | |||
docker push netflixoss/vector; \ | |||
fi |