-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy path.goreleaser-stable.yaml
273 lines (261 loc) · 6.61 KB
/
.goreleaser-stable.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
version: 2
#! .goreleaser.yaml
#@ binaries = {
#@ "kraft": {
#@ "netbsd": ["amd64", "arm64"],
#@ "openbsd": ["amd64", "arm64"],
#@ "darwin": ["amd64", "arm64"],
#@ "freebsd": ["amd64", "arm64"],
#@ "linux": ["amd64", "arm64"],
#@ },
#@ "runu": {
#@ "linux": ["amd64"],
#@ },
#@ }
before:
hooks:
- make man
changelog:
sort: asc
use: github
filters:
include:
- '^.*#[[:digit:]]+.*$'
groups:
- title: ⚠️ Breaking Changes
regexp: '^[[:xdigit:]]+: [[:lower:]]+(\(.*\))?!:.*$'
order: 1
- title: 🚀 New Features
regexp: '^[[:xdigit:]]+: feat(\(.*\))?:.*$'
order: 2
- title: 🐛 Bug Fixes
regexp: '^[[:xdigit:]]+: fix(\(.*\))?:.*$'
order: 3
- title: 📖 Docs
regexp: '^[[:xdigit:]]+: docs(\(.*\))?:.*$'
order: 4
- title: 🤖 Bumps
regexp: '^[[:xdigit:]]+: (gomod|build)\(deps\):.*$'
order: 5
- title: 🐒 Miscellaneous
order: 999
release:
github:
owner: unikraft
name: kraftkit
draft: false
prerelease: false
mode: replace
header: |
## KraftKit {{ .Tag }} ({{ .Date }})
This is a stable release of kraftkit.
name_template: 'v{{ .Version }}'
extra_files:
- name_template: public.key
signs:
- id: cosign
cmd: cosign
stdin: '{{ .Env.COSIGN_PASSWORD }}'
args:
- sign-blob
- "--key=cosign.key"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: all
nfpms:
- vendor: Unikraft
id: nfpm-default
maintainer: Alexander Jung <[email protected]>
description: Build and use highly customized and ultra-lightweight unikernels.
license: BSD 3-clause
bindir: /usr/bin
homepage: https://kraftkit.sh
formats:
- deb
- rpm
- apk
recommends:
- bison
- build-essential
- flex
- git
- libncurses-dev
- qemu-system
- socat
- unzip
- wget
suggests:
- gcc-x86-64-linux-gnu
- g++-x86-64-linux-gnu
contents:
- src: scripts/kraftld
dst: /usr/bin/kraftld
- src: docs/man/
dst: /usr/share/man/man1/
aurs:
- homepage: https://kraftkit.sh
ids:
#@ for arch in binaries["kraft"]["linux"]:
- #@ "archive-kraft-linux-{}".format(arch)
#@ end
description: Build and use highly customized and ultra-lightweight unikernels
maintainers:
- "Alexander Jung <alex at unikraft dot io>"
license: "BSD-3-Clause"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://[email protected]/kraftkit-bin.git"
package: |-
# kraft
install -Dm755 "${srcdir}/kraft" "${pkgdir}/usr/bin/kraft"
# kraftld
install -Dm755 "${srcdir}/kraftld" "${pkgdir}/usr/bin/kraftld"
# man pages
mkdir -p "${pkgdir}/usr/share/man/man1"
install -Dm644 ${srcdir}/man/* "${pkgdir}/usr/share/man/man1"
commit_author:
name: Unikraft Bot
email: [email protected]
nix:
- name: kraftkit
ids:
#@ for arch in binaries["kraft"]["linux"]:
- #@ "archive-kraft-linux-{}".format(arch)
#@ end
repository:
owner: unikraft
name: nur
homepage: https://kraftkit.sh
description: Build and use highly customized and ultra-lightweight unikernels
path: pkgs/kraftkit/default.nix
license: bsd3
install: |-
mkdir -p $out/bin
cp -vr "${srcdir}/dist/kraft" "${out}/bin/kraft"
cp -vr "${srcdir}/dist/kraftld" "${out}/bin/kraftld"
extra_install: |-
installManPage ${srcdir}/man/*
brews:
- name: kraftkit
ids:
#@ for arch in binaries["kraft"]["linux"]:
- #@ "archive-kraft-linux-{}".format(arch)
#@ end
#@ for arch in binaries["kraft"]["darwin"]:
- #@ "archive-kraft-darwin-{}".format(arch)
#@ end
url_template: "https://github.com/unikraft/kraftkit/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: Unikraft Bot
email: [email protected]
commit_msg_template: "Bump {{ .ProjectName }} to version {{ .Tag }}"
homepage: "https://kraftkit.sh"
description: "Build and use highly customized and ultra-lightweight unikernels."
license: "BSD-3-Clause"
skip_upload: false
dependencies:
- name: gnu-sed
- name: make
- name: coreutils
- name: m4
- name: gawk
- name: grep
- name: wget
- name: qemu
- name: socat
- name: x86_64-elf-binutils
- name: x86_64-elf-gcc
- name: aarch64-elf-binutils
- name: aarch64-elf-gcc
repository:
owner: unikraft
name: homebrew-cli
extra_install: |-
man1.install Dir["man/*"]
builds:
#@ for bin, oses in binaries.items():
#@ for os, archs in oses.items():
#@ for arch in archs:
- id: #@ "{}-{}-{}".format(bin, os, arch)
binary: #@ bin
main: #@ "./cmd/{}".format(bin)
env:
- GOMOD=kraftkit.sh
goos:
- #@ os
goarch:
- #@ arch
ldflags:
- -s -w
- -X {{ .Env.GOMOD }}/internal/version.version={{ .Version }}
- -X {{ .Env.GOMOD }}/internal/version.commit={{ .Commit }}
- -X {{ .Env.GOMOD }}/internal/version.buildTime={{ .Date }}
#@ if bin == "kraft" and os == "linux" and arch == "amd64":
- -extldflags "
-static
-lyajl
-Wl,--whole-archive
-llzma
-lbz2
-lzstd
-llzo2
-lxenguest
-Wl,--no-whole-archive
-lxenevtchn
-lxenlight
-lxenstore
-lxenctrl
-lxenforeignmemory
-lxenforeignmemory
-lxencall
-lxentoolcore
-lxenhypfs
-lxendevicemodel
-lxengnttab
-lxentoollog
-lz
-lnl-route-3
-lnl-3
-luuid
-lutil
"
#@ else:
- -extldflags "-static"
#@ end
tags:
- containers_image_storage_stub
- containers_image_openpgp
#@ if bin == "kraft" and os == "linux" and arch == "amd64":
- xen
#@ end
#@ end
#@ end
#@ end
archives:
#@ for os, archs in binaries["kraft"].items():
#@ for arch in archs:
- id: #@ "archive-kraft-{}-{}".format(os, arch)
formats: tar.gz
name_template: kraft_{{ .Version }}_{{ .Os }}_{{ .Arch }}
builds:
- #@ "kraft-{}-{}".format(os, arch)
files:
- src: scripts/kraftld
strip_parent: true
info:
mode: 0755
- src: "docs/man/*.1.gz"
dst: man
info:
mode: 0644
#@ end
#@ end
#@ for os, archs in binaries["runu"].items():
#@ for arch in archs:
- id: #@ "archive-runu-{}-{}".format(os, arch)
formats: tar.gz
name_template: runu_{{ .Version }}_{{ .Os }}_{{ .Arch }}
builds:
- #@ "runu-{}-{}".format(os, arch)
#@ end
#@ end