machine:
  services:
    - docker

deployment:
  hub:
    branch: master
    commands:
      - export LORRY_API_ENDPOINT=$QA_API_IP && grunt build
      - docker build -t centurylink/lorry-ui:qa .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/lorry-ui:qa
      - ssh root@$QA_SERVER_IP "./lorry_ui.sh"
  Production:
    branch: release
    commands:
      - export LORRY_API_ENDPOINT=$PRO_API_IP1 && grunt build
      - docker build -t centurylink/lorry-ui:latest .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/lorry-ui:latest

machine:
  services:
    - docker

deployment:
  hub:
    branch: master
    commands:
      - export LORRY_API_ENDPOINT=$QA_API_IP && grunt build
      - docker build -t centurylink/lorry-ui:qa .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/lorry-ui:qa
  Production:
    branch: release
    commands:
      - export LORRY_API_ENDPOINT=$PRO_API_IP1 && grunt build
      - docker build -t centurylink/lorry-ui:latest .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/lorry-ui:latest

Disable QA installation step
Disable QA installation step [ci skip]
