version: 2 jobs: build: docker: - image: golang:1.12-alpine steps: - checkout - run: make compile release: docker: - image: circleci/golang:1.12 steps: - checkout - run: curl -sL https://git.io/goreleaser | bash workflows: version: 2 build_and_release: jobs: - build - release: requires: - build filters: branches: ignore: /.*/ tags: only: /^v.*$/