machine:
  node:
    version: 5.7.0
test:
  pre:
    - npm install -g coveralls
    - npm install -g codeclimate-test-reporter
    - npm install -g snyk
  override:
    - npm run citestcoverage
  post:
    - coveralls < lcov.info
    - codeclimate-test-reporter < lcov.info
deployment:
  staging:
    branch: master
    heroku:
      appname: change-maker-api

machine:
  services:
    - docker
  node:
    version: 5.9.0
test:
  pre:
    - npm install -g coveralls
    - npm install -g codeclimate-test-reporter
    - npm install -g snyk
  override:
    - npm run citestcoverage
  post:
    - coveralls < lcov.info
    - codeclimate-test-reporter < lcov.info
    - docker build -t joe8bit/change-maker-api:$CIRCLE_SHA1 .
deployment:
  hub:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push joe8bit/change-maker-api:$CIRCLE_SHA1

Deploy to docker hub, not heroku
Deploy to docker hub, not heroku