version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.12.4-stretch
    working_directory: /go/src/github.com/nshttpd/mikrotik-exporter
    branches:
      only:
        - master
        - /^nshttpd.*/
    steps:
      - checkout
      - setup_remote_docker:
          version: 18.06.0-ce
      - run: make dockerhub
