Commit 6577805 1 parent eaac3db commit 6577805 Copy full SHA for 6577805
File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ version: 2.1
3
3
orbs :
4
4
go : circleci/go@1
5
5
6
+ references :
7
+ go_version : &go_version '1.17'
8
+
6
9
workflows :
7
10
test :
8
11
jobs :
@@ -33,6 +36,9 @@ workflows:
33
36
jobs :
34
37
test :
35
38
parameters :
39
+ go_version :
40
+ type : string
41
+ default : *go_version
36
42
acceptance :
37
43
type : string
38
44
default : ' '
53
59
packages : ' -v ./...'
54
60
55
61
release :
62
+ parameters :
63
+ go_version :
64
+ type : string
65
+ default : *go_version
56
66
docker :
57
- - image : circleci/golang:1.15
67
+ - image : circleci/golang:<< parameters.go_version >>
58
68
steps :
59
69
- checkout
60
70
- run :
Original file line number Diff line number Diff line change 9
9
goos :
10
10
- linux
11
11
- darwin
12
- # - windows
13
- # - freebsd
14
12
goarch :
15
13
- amd64
16
14
- arm64
17
- # - arm
18
- # - '386'
19
- ignore :
20
- - goos : darwin
21
- goarch : ' 386'
22
15
binary : ' {{ .ProjectName }}_v{{ .Version }}'
23
16
archives :
24
17
- format : zip
You can’t perform that action at this time.
0 commit comments