File tree Expand file tree Collapse file tree 2 files changed +30
-10
lines changed Expand file tree Collapse file tree 2 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 2
2
version : 2.1
3
3
4
4
orbs :
5
- goreleaser :
hubci/[email protected]
6
-
7
- executors :
8
- golang :
9
- docker :
10
- - image : cimg/go:1.20
5
+
6
+ goreleaser :
hubci/[email protected]
11
7
12
8
jobs :
13
9
build :
10
+ parameters :
11
+ go_version :
12
+ type : string
13
+ use_gomod_cache :
14
+ type : boolean
15
+ default : true
16
+ docker :
17
+ - image : cimg/go:<< parameters.go_version >>
14
18
executor : golang
15
19
steps :
16
20
- checkout
21
+ - when :
22
+ condition : << parameters.use_gomod_cache >>
23
+ steps :
24
+ - go/load-cache :
25
+ key : v1-go<< parameters.go_version >>
17
26
- run : go mod download
18
27
- run : make
28
+ - when :
29
+ condition : << parameters.use_gomod_cache >>
30
+ steps :
31
+ - go/save-cache :
32
+ key : v1-go<< parameters.go_version >>
19
33
20
34
workflows :
21
35
version : 2
22
36
pro-bing :
23
37
jobs :
24
38
- build :
39
+ name : go-<< matrix.go_version >>
40
+ matrix :
41
+ parameters :
42
+ go_version :
43
+ - " 1.22"
44
+ - " 1.23"
25
45
filters :
26
46
tags :
27
47
only : /.*/
28
48
- goreleaser/release :
29
49
name : test-release
30
- version : ' 1.16 .2'
31
- go-version : ' 1.20 '
50
+ version : ' 2.3 .2'
51
+ go-version : ' 1.23 '
32
52
dry-run : true
33
53
requires :
34
54
- build
@@ -37,7 +57,7 @@ workflows:
37
57
only : /.*/
38
58
- goreleaser/release :
39
59
name : release
40
- version : ' 1.16 .2'
60
+ version : ' 2.3 .2'
41
61
go-version : ' 1.20'
42
62
requires :
43
63
- build
Original file line number Diff line number Diff line change 1
1
module github.com/prometheus-community/pro-bing
2
2
3
- go 1.19
3
+ go 1.22
4
4
5
5
require (
6
6
github.com/google/uuid v1.6.0
You can’t perform that action at this time.
0 commit comments