forked from alibaba/kt-connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
158 lines (155 loc) · 4.07 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Make sure to check the documentation at http://goreleaser.com
env:
- GO_VERSION=1.15.6
before:
hooks:
- go mod download
builds:
- id: "ktctl"
main: ./cmd/ktctl/main.go
binary: ktctl
goos:
- linux
- darwin
- windows
env:
- CGO_ENABLED=0
- id: "kubectl-connect"
main: ./cmd/kubectl-connect/main.go
binary: kubectl-connect
goos:
- linux
- darwin
- windows
- id: "kubectl-exchange"
main: ./cmd/kubectl-exchange/main.go
binary: kubectl-exchange
goos:
- linux
- darwin
- windows
- id: "kubectl-mesh"
main: ./cmd/kubectl-mesh/main.go
binary: kubectl-mesh
goos:
- linux
- darwin
- windows
- id: "kubectl-provide"
main: ./cmd/kubectl-provide/main.go
binary: kubectl-provide
goos:
- linux
- darwin
- windows
- id: "shadow"
main: ./cmd/shadow/main.go
binary: shadow
goos:
- linux
goarch:
- amd64
- id: "apiserver"
main: ./cmd/server/main.go
binary: apiserver
goos:
- linux
goarch:
- amd64
dockers:
- goos: linux
goarch: amd64
ids:
- shadow
image_templates:
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-shadow:latest"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-shadow:{{ .Tag }}"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-shadow:v{{ .Major }}"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-shadow:v{{ .Version }}"
dockerfile: build/docker/shadow/Dockerfile_releaser
skip_push: false
extra_files:
- build/docker/shadow/run.sh
- goos: linux
goarch: amd64
ids:
- apiserver
image_templates:
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-server:latest"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-server:{{ .Tag }}"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-server:v{{ .Major }}"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-server:v{{ .Version }}"
dockerfile: build/docker/apiserver/Dockerfile_releaser
archives:
- id: ktctl
builds:
- ktctl
name_template: 'ktctl_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
format: zip
files:
- LICENSE
- README.md
- id: kubectl-connect
builds:
- kubectl-connect
name_template: 'kubectl-connect_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
format: zip
files:
- LICENSE
- README.md
- id: kubectl-exchange
builds:
- kubectl-exchange
name_template: 'kubectl-exchange_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
format: zip
files:
- LICENSE
- README.md
- id: kubectl-mesh
builds:
- kubectl-mesh
name_template: 'kubectl-mesh_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
format: zip
files:
- LICENSE
- README.md
- id: kubectl-provide
builds:
- kubectl-provide
name_template: 'kubectl-provide_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
}}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
format: zip
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "SNAPSHOT"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: alibaba
name: kt-connect
ids:
- ktctl
- kubectl-connect
- kubectl-exchange
- kubectl-mesh
- kubectl-provide
# @see https://github.com/goreleaser/goreleaser/issues/1023
draft: false
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: auto