-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
194 lines (169 loc) · 4.56 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# Generated by: tyk-ci/wf-gen
# Generated on: Thu Sep 23 14:04:36 UTC 2021
# Generation commands:
# ./pr.zsh -repos tyk-sync -title releng: latest releng -branch releng/updates
# m4 -E -DxREPO=tyk-sync
# Check the documentation at http://goreleaser.com
# This project needs CGO_ENABLED=1 and the cross-compiler toolchains for
# - arm64
# - macOS (only 10.15 is supported)
# - amd64
builds:
- id: std
ldflags:
- -X main.VERSION={{.Version}} -X main.commit={{.FullCommit}} -X main.buildDate={{.Date}} -X main.builtBy=goreleaser
goos:
- linux
- darwin
goarch:
- amd64
- arm64
# static builds strip symbols and do not allow plugins
- id: static-amd64
ldflags:
- -s -w -X main.VERSION={{.Version}} -X main.commit={{.FullCommit}} -X main.buildDate={{.Date}} -X main.builtBy=goreleaser
goos:
- linux
goarch:
- amd64
dockers:
# Build tykio/xDH_REPO, cloudsmith/xCOMPATIBILITY_NAME (amd64)
- ids:
- std
image_templates:
- "tykio/tyk-sync:{{ .Tag }}-amd64"
- "docker.tyk.io/tyk-sync/tyk-sync:{{ .Tag }}"
build_flag_templates:
- "--build-arg=PORTS=80"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
use: buildx
goarch: amd64
goos: linux
dockerfile: Dockerfile.std
extra_files:
- "install/"
- "README.md"
# Build tykio/xDH_REPO, cloudsmith/xCOMPATIBILITY_NAME (arm64)
- ids:
- std
image_templates:
- "tykio/tyk-sync:{{ .Tag }}-arm64"
- "docker.tyk.io/tyk-sync/tyk-sync:{{ .Tag }}-arm64"
build_flag_templates:
- "--build-arg=PORTS=80"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}-arm64"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
use: buildx
goarch: arm64
goos: linux
dockerfile: Dockerfile.std
extra_files:
- "install/"
- "README.md"
- ids:
- static-amd64
image_templates:
- "tykio/tyk-sync:s{{ .Version }}"
- "tykio/tyk-sync:s{{ .Major }}.{{ .Minor }}"
- "docker.tyk.io/tyk-sync/tyk-sync:s{{ .Version }}"
- "docker.tyk.io/tyk-sync/tyk-sync:s{{ .Major }}.{{ .Minor }}"
build_flag_templates:
- "--build-arg=PORTS=80"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}-slim"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
goarch: amd64
goos: linux
dockerfile: Dockerfile.slim
extra_files:
- "install/"
- "README.md"
docker_manifests:
- name_template: tykio/tyk-sync:{{ .Tag }}
image_templates:
- tykio/tyk-sync:{{ .Tag }}-amd64
- tykio/tyk-sync:{{ .Tag }}-arm64
- name_template: tykio/tyk-sync:v{{ .Major }}.{{ .Minor }}{{.Prerelease}}
image_templates:
- tykio/tyk-sync:{{ .Tag }}-amd64
- tykio/tyk-sync:{{ .Tag }}-arm64
nfpms:
- id: std
vendor: "Tyk Technologies Ltd"
homepage: "https://tyk.io"
maintainer: "Tyk <[email protected]>"
description:
package_name: tyk-sync
builds:
- std
formats:
- deb
- rpm
contents:
- src: "README.md"
dst: "/opt/share/docs/tyk-sync/README.md"
- src: "install/*"
dst: "/opt/tyk-sync/install"
scripts:
preinstall: "install/before_install.sh"
bindir: "/opt/tyk-sync"
overrides:
rpm:
replacements:
amd64: x86_64
arm: aarch64
deb:
replacements:
arm: arm64
rpm:
signature:
key_file: tyk.io.signing.key
deb:
signature:
key_file: tyk.io.signing.key
type: origin
archives:
- id: std-linux
builds:
- std
files:
- README.md
- "install/*"
- id: static-amd64
name_template: "{{ .ProjectName }}_{{ .Version }}_static_{{ .Os }}_{{ .Arch }}"
builds:
- static-amd64
files:
- README.md
checksum:
disable: false
signs:
- id: std
artifacts: checksum
changelog:
sort: asc
filters:
exclude:
- '^utils:'
- (?i)typo
- 'Merge (pull request|branch)'
- '\[CI\]'
- '(?i)\[Buddy\]'
- 'cherry picked'
- '^rel-eng:'
- '^minor:'
release:
github:
owner: TykTechnologies
name: tyk-sync
prerelease: auto
draft: true
name_template: "{{.ProjectName}}-v{{.Version}}"