machine:
  services:
    - docker

general:
  artifacts:
    - "imagelayers-api" # the built binary

dependencies:
  override:
    # This is a no-op to get it to not try and build our Go app (and possibly
    # fail due to Godep stuff).
    - "true"

test:
  override:
    - docker run -v $(pwd):/src centurylink/golang-tester

deployment:
  hub:
    branch: master
    owner: CenturyLinkLabs
    commands:
      - docker run -v $(pwd):/src centurylink/golang-builder:latest
      - docker build -t centurylink/imagelayers-api:qa .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/imagelayers-api:qa
      - ssh root@$QA_SERVER_IP "./imagelayers_api.sh"

machine:
  services:
    - docker

general:
  artifacts:
    - "imagelayers-api" # the built binary

dependencies:
  override:
    # This is a no-op to get it to not try and build our Go app (and possibly
    # fail due to Godep stuff).
    - "true"

test:
  override:
    - docker run -v $(pwd):/src centurylink/golang-tester

deployment:
  hub:
    branch: master
    owner: CenturyLinkLabs
    commands:
      - docker run -v $(pwd):/src centurylink/golang-builder:latest
      - docker build -t centurylink/imagelayers-api:qa .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/imagelayers-api:qa
      - ssh root@$QA_SERVER_IP "./imagelayers_api.sh"
  Production:
    branch: release
    owner: CenturyLinkLabs
    commands:
      - docker run -v $(pwd):/src centurylink/golang-builder:latest
      - docker build -t centurylink/imagelayers-api:latest .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/imagelayers-api:latest
      - ssh root@$PRO_SERVER_IP1 "./imagelayers_api.sh"

Update for PRO EVs
Update for PRO EVs [ci skip]