Permalink
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (32 sloc) 871 Bytes
machine:
node:
version: 0.10.35
services:
- docker
dependencies:
pre:
- npm install -g npm@2.6.0
- npm install -g karma
- npm install -g bower
- npm install -g grunt-cli
post:
- gem install compass
- bower install
test:
override:
- grunt test
deployment:
hub:
branch: master
commands:
- export IMAGE_LAYERS_API=$QA_API_IP && grunt build
- docker build -t centurylink/imagelayers-ui:qa .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push centurylink/imagelayers-ui:qa
Production:
branch: release
commands:
- export IMAGE_LAYERS_API=$PRO_API_IP1 && grunt build
- docker build -t centurylink/imagelayers-ui:latest .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push centurylink/imagelayers-ui:latest