-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yml
41 lines (41 loc) · 1.21 KB
/
.goreleaser.yml
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
project_name: kubectl-clusternet
release:
github:
owner: clusternet
name: kubectl-clusternet
builds:
- id: kubectl-clusternet
goos:
- linux
- darwin
goarch:
- amd64
- arm
- arm64
- "386"
# Set the modified timestamp on the output binary, typically
# you would do this to ensure a build was reproducible. Pass
# empty string to skip modifying the output.
# Default is empty string.
mod_timestamp: '{{ .CommitTimestamp }}'
# Set a specific go binary to use when building. It is safe to ignore
# this option in most cases.
# Default is "go"
gobinary: "go"
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: cmd/kubectl-clusternet.go
ldflags: -s -w
-X github.com/clusternet/kubectl-clusternet/pkg/version.gitVersion={{.Version}}
-X github.com/clusternet/kubectl-clusternet/pkg/version.gitCommit={{.Commit}}
-X github.com/clusternet/kubectl-clusternet/pkg/version.buildDate={{.Date}}
archives:
- id: kubectl-clusternet
builds:
- kubectl-clusternet
name_template: >-
{{ .ProjectName }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}{{ with .Arm }}v{{ . }}{{ end }}