forked from unikraft/kraftkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser-stable.yaml
196 lines (191 loc) · 4.87 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
#! .goreleaser.yaml
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 }}'
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/local/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
publishers:
- name: fury.io
ids:
- nfpm-default
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/{{ .Env.FURY_USER }}/
aurs:
- homepage: https://kraftkit.sh
ids:
#@ targets = [
#@ "linux-amd64",
#@ "linux-arm64"
#@ ]
#@ for binary in ["kraft"]:
#@ for target in targets:
- #@ "archive-{}-{}".format(binary, target)
#@ end
#@ 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: |-
# bin
install -Dm755 "${srcdir}/kraft" "${pkgdir}/usr/bin/kraft"
# license
install -Dm644 "${srcdir}/LICENSE.md" "${pkgdir}/usr/share/licenses/kraftkit/LICENSE"
commit_author:
name: Unikraft Bot
email: [email protected]
nix:
- name: kraftkit
ids:
#@ targets = [
#@ "linux-amd64",
#@ "linux-arm64"
#@ ]
#@ for binary in ["kraft"]:
#@ for target in targets:
- #@ "archive-{}-{}".format(binary, target)
#@ end
#@ 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: BSD-3-Clause
install: |-
mkdir -p $out/bin
cp -vr ./dist/kraft $out/bin/kraft
builds:
#@ targets = {
#@ "linux-amd64": {"os": "linux", "arch": "amd64"},
#@ "linux-arm64": {"os": "linux", "arch": "arm64"},
#@ "freebsd-amd64": {"os": "freebsd", "arch": "amd64"},
#@ "freebsd-arm64": {"os": "freebsd", "arch": "arm64"},
#@ "darwin-arm64": {"os": "darwin", "arch": "arm64"},
#@ "darwin-amd64": {"os": "darwin", "arch": "amd64"}
#@ }
#@ for binary in ["kraft"]:
#@ for target, specs in targets.items():
- id: #@ "{}-{}".format(binary, target)
binary: #@ binary
main: #@ "./cmd/{}".format(binary)
env:
- CGO_ENABLED=0
- GOMOD=kraftkit.sh
goos:
- #@ specs["os"]
goarch:
- #@ specs["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 }}
#@ end
#@ end
#@ targets = {
#@ "linux-amd64": {"os": "linux", "arch": "amd64"}
#@ }
#@ for binary in ["runu"]:
#@ for target, specs in targets.items():
- id: #@ "{}-{}".format(binary, target)
binary: #@ binary
main: #@ "./cmd/{}".format(binary)
env:
- CGO_ENABLED=1
goos:
- #@ specs["os"]
goarch:
- #@ specs["arch"]
ldflags:
- -s -w
#@ end
#@ end
archives:
#@ targets = [
#@ "linux-amd64",
#@ "linux-arm64",
#@ "freebsd-amd64",
#@ "freebsd-arm64",
#@ "darwin-arm64",
#@ "darwin-amd64"
#@ ]
#@ for binary in ["kraft"]:
#@ for target in targets:
- id: #@ "archive-{}-{}".format(binary, target)
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- #@ "{}-{}".format(binary, target)
#@ end
#@ end
#@ targets = [
#@ "linux-amd64"
#@ ]
#@ for binary in ["runu"]:
#@ for target in targets:
- id: #@ "archive-{}-{}".format(binary, target)
format: tar.gz
name_template: "{{ .ProjectName }}_runu_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- #@ "{}-{}".format(binary, target)
#@ end
#@ end