forked from kubernetes-sigs/cluster-api-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
31 lines (30 loc) · 854 Bytes
/
.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
before:
hooks:
- make release
builds:
- id: "clusterctl-operator"
main: ./cmd/plugin
binary: bin/clusterctl-operator
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X 'sigs.k8s.io/cluster-api-operator/version.gitMajor={{.Major}}'
- -X 'sigs.k8s.io/cluster-api-operator/version.gitMinor={{.Minor}}'
- -X 'sigs.k8s.io/cluster-api-operator/version.gitVersion={{.Version}}'
- -X 'sigs.k8s.io/cluster-api-operator/version.gitCommit={{.Commit}}'
- -X 'sigs.k8s.io/cluster-api-operator/version.gitTreeState={{.GitTreeState}}'
- -X 'sigs.k8s.io/cluster-api-operator/version.buildDate={{.Date}}'
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- id: clusterctl-operator
builds:
- clusterctl-operator
name_template: "clusterctl-operator_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: false