pipeline:
  tests:
    image: node:10
    when:
      event: [ push ]
    commands:
      - npm install
      - npm run lint
  docker:
    image: plugins/docker
    when:
      event: [ push ]
      branch:
        - master
        - firebase-logs
    registry: https://registry.abakus.no
    repo: registry.abakus.no/webkom/ababot
    secrets: [ docker_username, docker_password ]
    tags:
      - ${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7}

pipeline:
  tests:
    image: node:10
    when:
      event: [ push ]
    commands:
      - npm install
      - npm run lint
  docker:
    image: plugins/docker
    when:
      event: [ push ]
      branch:
        - master
    registry: https://registry.abakus.no
    repo: registry.abakus.no/webkom/ababot
    secrets: [ docker_username, docker_password ]
    tags:
      - ${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7}

Remove firebase-logs from CI branches
Remove firebase-logs from CI branches
