machine:
  services:
    - docker
  environment:
    IMAGE_NAME: quay.io/vektorlab/ctop

dependencies:
  override:
    - docker info
    - make image

test:
  override:
    - docker run -ti ctop -v

deployment:
  hub:
    branch: master
    commands:
      - docker tag ctop ${IMAGE_NAME}:latest
      - docker tag ctop ${IMAGE_NAME}:$(cat VERSION)
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS quay.io
      - docker push ${IMAGE_NAME}
