forked from webmeshproj/webmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
220 lines (205 loc) · 4.54 KB
/
.goreleaser.yaml
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
project_name: webmesh
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: node
main: cmd/node/main.go
binary: webmesh-node
env:
- CGO_ENABLED=0
tags:
- osusergo
- netgo
ldflags:
- -s -w
- -X github.com/webmeshproj/webmesh/pkg/version.Version={{.Version}}
- -X github.com/webmeshproj/webmesh/pkg/version.Commit={{.Commit}}
- -X github.com/webmeshproj/webmesh/pkg/version.BuildDate={{.Date}}
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
- '386'
- ppc64le
- s390x
- mips64le
- mips64
- mipsle
- mips
- id: wmctl
main: cmd/wmctl/main.go
binary: wmctl
env:
- CGO_ENABLED=0
tags:
- osusergo
- netgo
ldflags:
- -s -w
- -X github.com/webmeshproj/webmesh/pkg/version.Version={{.Version}}
- -X github.com/webmeshproj/webmesh/pkg/version.Commit={{.Commit}}
- -X github.com/webmeshproj/webmesh/pkg/version.BuildDate={{.Date}}
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
- '386'
- ppc64le
- s390x
- mips64le
- mips64
- mipsle
- mips
- id: node-docker-linux
main: cmd/node/main.go
binary: webmesh-node
env:
- CGO_ENABLED=0
tags:
- osusergo
- netgo
ldflags:
- -s -w
- -X github.com/webmeshproj/webmesh/pkg/version.Version={{.Version}}
- -X github.com/webmeshproj/webmesh/pkg/version.Commit={{.Commit}}
- -X github.com/webmeshproj/webmesh/pkg/version.BuildDate={{.Date}}
goos:
- linux
goarch:
- amd64
- arm64
- arm
- '386'
- ppc64le
- s390x
# upx:
# - enabled: true
# compress: best
# lzma: true
# goos:
# - linux
# goarch:
# - amd64
# - arm64
# - arm
# - '386'
# - ppc64le
# - mips
# - mipsle
# ids:
# - node
# - wmctl
# - node-docker-linux
# - enabled: true
# compress: best
# lzma: true
# goos:
# - windows
# goarch:
# - amd64
# - '386'
# ids:
# - node
# - wmctl
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
archives:
- id: webmesh
format: tar.gz
builds:
- node
- wmctl
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
nfpms:
- id: webmesh
maintainer: Avi Zimmerman <[email protected]>
description: WebMesh is a service mesh for the web
homepage: https://webmeshproj.github.io
license: Apache 2.0
builds:
- node
- wmctl
formats:
- deb
- rpm
- apk
- archlinux
recommends:
- wireguard-tools
archlinux:
packager: Avi Zimmerman <[email protected]>
pkgbase: webmesh
overrides:
rpm:
dependencies:
- elrepo-release
- epel-release
- kmod-wireguard
brews:
- ids: [webmesh]
folder: Formula
homepage: https://webmeshproj.github.io
description: WebMesh is a service mesh for the web
license: Apache 2.0
url_template: "https://github.com/webmeshproj/webmesh/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
skip_upload: auto
repository:
owner: webmeshproj
name: homebrew-repo
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
commit_author:
name: Avi Zimmerman
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
test: |
system "#{bin}/webmesh-node --version"
system "#{bin}/wmctl --version"
signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
args:
- "sign-blob"
- "--yes"
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "--output-signature=${signature}"
- "--output-certificate=${signature}.cert"
- "${artifact}"
artifacts: checksum
changelog:
sort: asc
filters:
exclude:
- '^examples:'
release:
github:
owner: webmeshproj
name: webmesh
ids:
- webmesh
extra_files:
- glob: dist/*.sig
- glob: dist/*.sig.cert
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj