forked from alibaba/kt-connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
121 lines (121 loc) · 3.06 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
# Make sure to check the documentation at http://goreleaser.com
env:
- GO_VERSION=1.18
before:
hooks:
- make mod
- bash build/scripts/wintun.sh
- bash build/scripts/docker.sh
builds:
- id: "ktctl"
main: ./cmd/ktctl/main.go
binary: ktctl
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm64
env:
- CGO_ENABLED=0
- id: "shadow"
main: ./cmd/shadow/main.go
binary: artifacts/shadow/shadow-linux-amd64
goos:
- linux
goarch:
- amd64
- id: "router"
main: ./cmd/router/main.go
binary: artifacts/router/router-linux-amd64
goos:
- linux
goarch:
- amd64
- id: "navigator"
main: ./cmd/navigator/main.go
binary: artifacts/navigator/navigator-linux-amd64
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 }}"
dockerfile: artifacts/docker/shadow/Dockerfile
skip_push: false
extra_files:
- build/docker/shadow/run.sh
- build/docker/shadow/disconnect.sh
- goos: linux
goarch: amd64
ids:
- router
image_templates:
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-router:latest"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-router:{{ .Tag }}"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-router:v{{ .Major }}"
dockerfile: artifacts/docker/router/Dockerfile
skip_push: false
extra_files:
- build/docker/router/nginx.conf
- goos: linux
goarch: amd64
ids:
- navigator
image_templates:
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-navigator:latest"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-navigator:{{ .Tag }}"
- "registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-navigator:v{{ .Major }}"
dockerfile: artifacts/docker/navigator/Dockerfile
skip_push: false
extra_files:
- build/docker/navigator/setup_iptables.sh
archives:
- id: ktctl
builds:
- ktctl
name_template: 'ktctl_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- src: 'artifacts/{{ .Os }}/{{ .Arch }}/*'
dst: .
strip_parent: true
replacements:
darwin: MacOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
arm64: arm_64
checksum:
name_template: '{{ .Tag }}_checksums.txt'
snapshot:
name_template: "SNAPSHOT"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^config:'
- '^refactor:'
release:
github:
owner: alibaba
name: kt-connect
ids:
- ktctl
# @see https://github.com/goreleaser/goreleaser/issues/1023
draft: false
prerelease: auto