machine:
  services:
    - docker

general:
  artifacts:
    - "panamax-kubernetes-adapter-go" # 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/panamax-kubernetes-adapter:qa .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/panamax-kubernetes-adapter:qa

machine:
  services:
    - docker

general:
  artifacts:
    - "panamax-kubernetes-adapter-go" # 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:
      # Pushing to adapter-go until this is tested, then it will replace the
      # existing repo on Docker. I can't just push a new tag on the existing
      # because it's a trusted build.
      - docker run -v $(pwd):/src centurylink/golang-builder:latest
      - docker build -t centurylink/panamax-kubernetes-adapter-go:qa .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push centurylink/panamax-kubernetes-adapter-go:qa

Tweak for current docker repo issues.
Tweak for current docker repo issues.
