debug: true
build:
  image: node:5
  environment:
  - NODE_ENV=dev
  commands:
   - npm install
   - npm test

cache:
  mount:
    - node_modules
    - .git

publish:
  docker:
    image: leankit/cowpoke
    username: $$DOCKER_USER
    password: $$DOCKER_PASS
    email: $$DOCKER_EMAIL
    repo: leankit/cowpoke
    storage_driver: overlay
    when:
      branch: poc

debug: true
build:
  image: node:5
  environment:
  - NODE_ENV=dev
  commands:
   - npm install
   - npm test

cache:
  mount:
    - node_modules
    - .git

publish:
  docker:
    image: leankit/cowpoke
    username: $$DOCKER_USER
    password: $$DOCKER_PASS
    email: $$DOCKER_EMAIL
    repo: leankit/cowpoke
    storage_driver: overlay
    when:
      branch: master

Fix build file to push image from master branch
Fix build file to push image from master branch
