Added CircleCI config file
This commit is contained in:
parent
a4c0016baa
commit
f2c0c0e200
1 changed files with 30 additions and 0 deletions
30
.circleci/config.yml
Normal file
30
.circleci/config.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
- image: golang:1.12-alpine
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- name: Make compile
|
||||||
|
command: make compile
|
||||||
|
release:
|
||||||
|
docker:
|
||||||
|
- image: circleci/golang:1.12
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: goreleaser
|
||||||
|
command: curl -sL https://git.io/goreleaser | bash
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
build_and_release:
|
||||||
|
jobs:
|
||||||
|
- build
|
||||||
|
- release:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
tags:
|
||||||
|
only: /^v.*$/
|
Loading…
Reference in a new issue