@@ -29,10 +29,9 @@ builds:
29
29
- goos : windows
30
30
goarch : arm64
31
31
hooks : &build-hooks
32
- # Install upx first, https://github.com/upx/upx/releases
33
- post : upx -9 "{{ .Path }}"
32
+ post : ./hack/compress-release-binary.sh {{ .Path }}
34
33
main : ./cmd/cli
35
- binary : ' capact'
34
+ binary : " capact"
36
35
ldflags :
37
36
- -s -w -X capact.io/capact/cmd/cli/cmd.Version={{.Version}} -X capact.io/capact/cmd/cli/cmd.Revision={{.ShortCommit}} -X capact.io/capact/cmd/cli/cmd.BuildDate={{.Date}} -X capact.io/capact/cmd/cli/cmd.Branch={{.Branch}}
38
37
@@ -44,40 +43,40 @@ builds:
44
43
ignore : *build-ignore
45
44
hooks : *build-hooks
46
45
main : ./cmd/populator
47
- binary : ' populator'
46
+ binary : " populator"
48
47
49
48
archives :
50
49
- id : capact-archive
51
- name_template : &archives-name-template ' {{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
50
+ name_template : &archives-name-template " {{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
52
51
format : &archives-format binary
53
52
builds :
54
- - capact
53
+ - capact
55
54
56
55
- id : populator-archive
57
56
name_template : *archives-name-template
58
57
format : *archives-format
59
58
builds :
60
- - populator
59
+ - populator
61
60
62
61
brews :
63
62
- name : capact
64
63
ids :
65
- - capact-archive
64
+ - capact-archive
66
65
homepage : &homebrew-homepage https://github.com/capactio/homebrew-tap
67
66
description : " Capact CLI is a command-line tool, which manages Capact resources."
68
67
license : " Apache License 2.0"
69
68
tap : &homebrew-tap
70
69
owner : capactio
71
70
name : homebrew-tap
72
71
commit_author : &homebrew-commit-author
73
- name : Capact Bot
74
-
72
+ name : Capact Bot
73
+
75
74
test : |
76
75
system "#{bin}/capact version"
77
76
78
77
- name : populator
79
78
ids :
80
- - populator-archive
79
+ - populator-archive
81
80
homepage : *homebrew-homepage
82
81
description : " Populator is a command-line tool, which helps to populate various Capact content."
83
82
license : " Apache License 2.0"
@@ -97,7 +96,7 @@ dockers:
97
96
- " ghcr.io/capactio/tools/capact-cli:v{{ .Major }}"
98
97
99
98
checksum :
100
- name_template : ' checksums.txt'
99
+ name_template : " checksums.txt"
101
100
102
101
snapshot :
103
102
name_template : " {{ .Tag }}-next"
@@ -106,8 +105,8 @@ changelog:
106
105
sort : asc
107
106
filters :
108
107
exclude :
109
- - ' ^docs:'
110
- - ' ^test:'
108
+ - " ^docs:"
109
+ - " ^test:"
111
110
112
111
dist : bin
113
112
0 commit comments