-
Notifications
You must be signed in to change notification settings - Fork 37
/
.goreleaser.yml
41 lines (38 loc) · 1.1 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
before:
hooks:
- go mod download
builds:
- id: kubectl-operator
main: ./
binary: kubectl-operator
env:
- CGO_ENABLED=0
asmflags:
- all=-trimpath={{ dir .Env.PWD }}
gcflags:
- all=-trimpath={{ dir .Env.PWD }}
ldflags:
- -s
- -w
- -X github.com/operator-framework/kubectl-operator/internal/version.GitVersion={{.Env.GIT_VERSION}}
- -X github.com/operator-framework/kubectl-operator/internal/version.GitCommit={{.Env.GIT_COMMIT}}
- -X github.com/operator-framework/kubectl-operator/internal/version.GitCommitTime={{.Env.GIT_COMMIT_TIME}}
- -X github.com/operator-framework/kubectl-operator/internal/version.GitTreeState={{.Env.GIT_TREE_STATE}}
targets:
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- windows_amd64
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
archives:
- builds:
- kubectl-operator
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
format: tar.gz
files:
- LICENSE
release:
disable: '{{ ne .Env.ENABLE_RELEASE_PIPELINE "true" }}'