-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yaml
70 lines (64 loc) · 1.61 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
# .goreleaser.yaml
project_name: k0s
version: 2
env:
- CGO_ENABLED=0
- GONOSUMDB=*
- GOPROXY=https://proxy.golang.org,https://goproxy.cn,https://goproxy.io,direct
before:
hooks:
- go mod tidy
builds:
- id: k0s
main: ./cmd/k0s
ldflags:
- -s -w -X "github.com/btwiuse/version.MajorString=0"
- -s -w -X "github.com/btwiuse/version.MinorString=6"
- -s -w -X "github.com/btwiuse/version.GitCommitString={{.Commit}}"
- -s -w -X "github.com/btwiuse/version.GitTreeStateString=clean"
- -s -w -X "github.com/btwiuse/version.GitVersionString={{.Version}}"
- -s -w -X "github.com/btwiuse/version.BuildDateString={{.Date}}"
targets:
# requires external (cgo) linking, but cgo is not enabled
# android_386
# android_amd64
# android_arm_6
# android_arm_7
- android_arm64
- darwin_amd64
- darwin_arm64
- freebsd_386
- freebsd_amd64
- linux_386
- linux_amd64
- linux_arm64
- linux_arm_6
- linux_arm_7
- linux_loong64
- linux_mips
- linux_mips64
- linux_mips64le
- linux_mipsle
- linux_ppc64
- linux_ppc64le
- linux_riscv64
- linux_s390x
- netbsd_386
- netbsd_amd64
- openbsd_386
- openbsd_amd64
- windows_386
- windows_amd64
- windows_arm64
- windows_arm_7
archives:
- id: archive
builds:
- k0s
files:
- LICENSE
name_template: >-
{{ .ProjectName }}-{{- .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}
format_overrides:
- goos: windows
format: zip