forked from kcp-dev/kcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
78 lines (78 loc) · 1.27 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
builds:
- id: "kcp"
main: ./cmd/kcp
binary: bin/kcp
ldflags:
- "{{ .Env.LDFLAGS }}"
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- ppc64le
ignore:
- goos: darwin
goarch: ppc64le
env:
- CGO_ENABLED=0
- id: "kubectl-kcp"
main: ./cmd/kubectl-kcp
binary: bin/kubectl-kcp
ldflags:
- "{{ .Env.LDFLAGS }}"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- ppc64le
ignore:
- goos: darwin
goarch: ppc64le
- goos: windows
goarch: ppc64le
env:
- CGO_ENABLED=0
- id: "kubectl-workspace"
main: ./cmd/kubectl-workspace
binary: bin/kubectl-workspace
ldflags:
- "{{ .Env.LDFLAGS }}"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- ppc64le
ignore:
- goos: darwin
goarch: ppc64le
- goos: windows
goarch: ppc64le
hooks:
post:
- ln -sfr bin/kubectl-workspace bin/kubectl-workspaces
- ln -sfr bin/kubectl-workspace bin/kubectl-ws
env:
- CGO_ENABLED=0
archives:
- id: kcp
builds:
- kcp
- id: kubectl-kcp-plugin
builds:
- kubectl-kcp
- kubectl-workspace
name_template: "kubectl-kcp-plugin_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- bin/kubectl-workspaces
- bin/kubectl-ws
release:
draft: true
prerelease: auto
mode: keep-existing