2019-04-19 22:31:39 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-04-19 22:34:14 +00:00
|
|
|
docker:
|
2020-12-02 12:33:47 +00:00
|
|
|
- image: circleci/golang:1.15
|
2019-04-19 22:34:14 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-12-02 12:37:09 +00:00
|
|
|
- run: sh -c "$(curl -ssL https://taskfile.dev/install.sh)" -- -d
|
|
|
|
- run: ./bin/task cli-cover-report
|
2019-04-19 22:31:39 +00:00
|
|
|
release:
|
|
|
|
docker:
|
2020-12-02 12:33:47 +00:00
|
|
|
- image: circleci/golang:1.15
|
2019-04-19 22:31:39 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-12-02 12:37:09 +00:00
|
|
|
- run: sh -c "$(curl -ssL https://taskfile.dev/install.sh)" -- -d
|
|
|
|
- run: ./bin/task tools download-reveal
|
2019-04-19 22:36:05 +00:00
|
|
|
- run: curl -sL https://git.io/goreleaser | bash
|
2020-12-02 12:37:09 +00:00
|
|
|
- run: goreleaser release
|
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.*$/
|