-
Notifications
You must be signed in to change notification settings - Fork 205
/
.goreleaser.yaml
116 lines (107 loc) · 2.18 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: koko
before:
hooks:
- go mod tidy
- go generate ./...
snapshot:
version_template: "{{ .Tag }}-next"
builds:
- id: koko
main: ./cmd/koko/
binary: koko
goos:
- linux
- darwin
- freebsd
- netbsd
goarch:
- amd64
- arm64
- mips64le
- ppc64le
- s390x
- riscv64
- loong64
env:
- CGO_ENABLED=0
ldflags:
- -w -s
- -X 'main.Buildstamp={{ .Date }}'
- -X 'main.Githash={{ .ShortCommit }}'
- -X 'main.Goversion={{ .Env.GOVERSION }}'
- -X 'main.Version={{ .Tag }}'
- -X 'github.com/jumpserver/koko/pkg/config.CipherKey={{ .Env.CipherKey }}'
- id: kubectl
main: ./cmd/kubectl/
binary: kubectl
goos:
- linux
- darwin
- freebsd
- netbsd
goarch:
- amd64
- arm64
- mips64le
- ppc64le
- s390x
- riscv64
- loong64
env:
- CGO_ENABLED=0
ldflags:
- -w -s
- -X 'github.com/jumpserver/koko/pkg/config.CipherKey={{ .Env.CipherKey }}'
- id: helm
main: ./cmd/helm/
binary: helm
goos:
- linux
- darwin
- freebsd
- netbsd
goarch:
- amd64
- arm64
- mips64le
- ppc64le
- s390x
- riscv64
- loong64
env:
- CGO_ENABLED=0
ldflags:
- -w -s
- -X 'github.com/jumpserver/koko/pkg/config.CipherKey={{ .Env.CipherKey }}'
archives:
- format: tar.gz
wrap_in_directory: true
files:
- LICENSE
- README.md
- config_example.yml
- locale/*
- src: utils/init-kubectl.sh
dst: init-kubectl
strip_parent: true
format_overrides:
- goos: windows
format: zip
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}"
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
draft: true
mode: append
extra_files:
- glob: dist/*.tar.gz
- glob: dist/*.txt
name_template: "Release {{.Tag}}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"