machine:
  services:
    - docker

test:
  override:
    - make build

deployment:
  production:
    branch: master
    commands:
      - curl -u $DOCKER_USER:$DOCKER_API https://cloud.docker.com/api/app/v1/service/
      - make push

      # - deploy/deploy_shinyapps

machine:
  services:
    - docker

test:
  override:
    - make build

deployment:
  production:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - make push

      # - deploy/deploy_shinyapps

Switch back to docker login.
Switch back to docker login.

Seems like docker cloud has a different Auth services.
Would be really reasonable if they will use API key, not like it right now.
