Skip to content

Commit 6d0cce5

Browse files
committed
Add configuration for releases deployment on tags
1 parent 06691b3 commit 6d0cce5

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.circleci/config.yml

+31-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,34 @@ jobs:
1717
- save_cache:
1818
key: go-mod-v1-{{ checksum "go.sum" }}
1919
paths:
20-
- "/go/pkg/mod"
20+
- "/go/pkg/mod"
21+
release:
22+
docker:
23+
- image: circleci/golang:1.12
24+
environment:
25+
- GO111MODULE=on
26+
- GITHUB_TOKEN=${GITHUB_TOKEN}
27+
working_directory: /go/src/github.com/oleiade/trousseau
28+
steps:
29+
- checkout
30+
- restore_cache:
31+
keys:
32+
- go-mod-v1-{{ checksum "go.sum" }}
33+
- run: go mod download
34+
- run: goreleaser
35+
workflows:
36+
version: 2
37+
build-n-deploy:
38+
jobs:
39+
- build:
40+
filters:
41+
tags:
42+
only: /.*/
43+
- deploy:
44+
requires:
45+
- build
46+
filters:
47+
tags:
48+
only: /^v.*/
49+
branches:
50+
ignore: /.*/

0 commit comments

Comments
 (0)