machine:
  node:
    version: 0.10.35
  services:
    - docker

dependencies:
  pre:
    - 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=http://8.22.8.236:8888 && 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
      - ./bin/deploy_qa.sh
  Production:
    branch: release
    commands:
      - export IMAGE_LAYERS_API=http://x.x.x.x:xxxx && 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
      - ./bin/deploy_pro.sh


machine:
  node:
    version: 0.10.35
  services:
    - docker

dependencies:
  pre:
    - 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:
      - 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
      - ssh root@$QA_SERVER_IP "./imagelayers_ui.sh"
  Production:
    branch: release
    commands:
      - 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
      - ssh root@$PRO_SERVER_IP "./imagelayers_ui.sh"


Replace QA server IP with EV
Replace QA server IP with EV
