2019-04-19 22:31:39 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-04-19 22:34:14 +00:00
|
|
|
docker:
|
2019-04-19 22:36:50 +00:00
|
|
|
- image: circleci/golang:1.12
|
2019-04-19 22:34:14 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2019-04-19 22:36:05 +00:00
|
|
|
- run: make compile
|
2019-04-19 22:31:39 +00:00
|
|
|
release:
|
|
|
|
docker:
|
|
|
|
- image: circleci/golang:1.12
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-04-19 22:36:05 +00:00
|
|
|
- run: curl -sL https://git.io/goreleaser | bash
|
2019-04-19 22:31:39 +00:00
|
|
|
workflows:
|
2019-04-19 22:34:14 +00:00
|
|
|
version: 2
|
|
|
|
build_and_release:
|
|
|
|
jobs:
|
2019-04-19 22:47:01 +00:00
|
|
|
- build:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2019-04-19 22:34:14 +00:00
|
|
|
- release:
|
|
|
|
requires:
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
|
|
|
tags:
|
|
|
|
only: /^v.*$/
|