-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yml
174 lines (166 loc) · 4.34 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# step-kms-plugin .goreleaser.yml file.
# Check the documentation at:
# - http://goreleaser.com
# - https://github.com/goreleaser/goreleaser-cross
# - https://github.com/goreleaser/goreleaser-cross-example
project_name: step-kms-plugin
builds:
- id: linux-amd64
main: ./main.go
binary: step-kms-plugin
goos:
- linux
goarch:
- amd64
env:
- CC=gcc
- CXX=g++
flags:
- -trimpath
ldflags:
- -s -w -X {{.ModulePath}}/cmd.Version={{.Version}} -X {{.ModulePath}}/cmd.ReleaseDate={{.Date}}
- id: linux-arm64
main: ./main.go
binary: step-kms-plugin
goos:
- linux
goarch:
- arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
flags:
- -trimpath
ldflags:
- -s -w -X {{.ModulePath}}/cmd.Version={{.Version}} -X {{.ModulePath}}/cmd.ReleaseDate={{.Date}}
- id: darwin-amd64
main: ./main.go
binary: step-kms-plugin
goos:
- darwin
goarch:
- amd64
env:
- CC=o64-clang
- CXX=o64-clang++
- LD_LIBRARY_PATH=/osxcross/lib
flags:
- -trimpath
ldflags:
- -s -w -X {{.ModulePath}}/cmd.Version={{.Version}} -X {{.ModulePath}}/cmd.ReleaseDate={{.Date}}
- id: darwin-arm64
main: ./main.go
binary: step-kms-plugin
goos:
- darwin
goarch:
- arm64
env:
- CC=oa64-clang
- CXX=oa64-clang++
- LD_LIBRARY_PATH=/osxcross/lib
flags:
- -trimpath
ldflags:
- -s -w -X {{.ModulePath}}/cmd.Version={{.Version}} -X {{.ModulePath}}/cmd.ReleaseDate={{.Date}}
- id: windows-amd64
main: ./main.go
binary: step-kms-plugin
goos:
- windows
goarch:
- amd64
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
flags:
- -trimpath
ldflags:
- -s -w -X {{.ModulePath}}/cmd.Version={{.Version}} -X {{.ModulePath}}/cmd.ReleaseDate={{.Date}}
- id: windows-arm64
main: ./main.go
binary: step-kms-plugin
goos:
- windows
goarch:
- arm64
env:
- CC=/llvm-mingw/bin/aarch64-w64-mingw32-gcc
- CXX=/llvm-mingw/bin/aarch64-w64-mingw32-g++
flags:
- -trimpath
ldflags:
- -s -w -X {{.ModulePath}}/cmd.Version={{.Version}} -X {{.ModulePath}}/cmd.ReleaseDate={{.Date}}
archives:
- id: step-kms-plugin
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
format_overrides:
- goos: windows
format: zip
builds:
- linux-amd64
- linux-arm64
- darwin-amd64
- darwin-arm64
- windows-amd64
- windows-arm64
wrap_in_directory: "{{ .ProjectName }}_{{ .Version }}"
files:
- README.md
- LICENSE
- completions/*
nfpms:
- builds:
- linux-amd64
- linux-arm64
package_name: step-kms-plugin
file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
vendor: Smallstep Labs
homepage: https://github.com/smallstep/step-kms-plugin
maintainer: Smallstep <[email protected]>
description: >
step-kms-plugin is a plugin for step to manage keys and certificates on a cloud KMSs and HSMs
license: Apache 2.0
section: utils
formats:
- deb
- rpm
priority: optional
bindir: /usr/bin
contents:
- src: completions/bash_completion
dst: /usr/share/bash-completion/completions/step-kms-plugin
- src: completions/zsh_completion
dst: /usr/share/zsh/vendor-completions/_step-kms-plugin
packager: deb
- src: completions/zsh_completion
dst: /usr/share/zsh/site-functions/_step-kms-plugin
packager: rpm
overrides:
deb:
dependencies:
- libpcsclite1
rpm:
dependencies:
- pcsc-lite-libs
sboms:
- id: archive
artifacts: archive
args: ["$artifact", "--output", "cyclonedx-json=$document"]
env:
- SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES=true
- id: binary
artifacts: binary
args: ["$artifact", "--output", "cyclonedx-json=$document"]
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
release:
github:
owner: smallstep
name: step-kms-plugin
prerelease: auto
draft: false