-
Notifications
You must be signed in to change notification settings - Fork 306
/
.goreleaser.yml
259 lines (251 loc) · 7 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
version: 2
project_name: tilt
builds:
- main: ./cmd/tilt/main.go
id: tilt-darwin
flags:
- -tags=osusergo
- -mod=vendor
goos:
- darwin
goarch:
- amd64
- arm64
env:
# clang is a cross-compiler by default, so the same CC/CXX works
# for arm64 (M1) & amd64 (Intel) builds
- CGO_ENABLED=1
- CC=o64h-clang
- CXX=o64h-clang++
- main: ./cmd/tilt/main.go
id: tilt-linux-arm64
flags:
- -tags=osusergo
- -mod=vendor
goos:
- linux
goarch:
- arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
- main: ./cmd/tilt/main.go
id: tilt-linux-musl-arm64
flags:
- -tags=osusergo
- -mod=vendor
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
- -linkmode external -extldflags "-static"
goos:
- linux
goarch:
- arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-musl-gcc
- CXX=aarch64-linux-musl-g++
- main: ./cmd/tilt/main.go
id: tilt-linux-arm
flags:
- -tags=osusergo
- -mod=vendor
goos:
- linux
goarch:
- arm
env:
- CGO_ENABLED=1
- CC=arm-linux-gnueabi-gcc
- CXX=arm-linux-gnueabi-g++
- main: ./cmd/tilt/main.go
id: tilt-linux-amd64
flags:
- -tags=osusergo
- -mod=vendor
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=1
- main: ./cmd/tilt/main.go
id: tilt-linux-musl-amd64
flags:
- -tags=osusergo
- -mod=vendor
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
- -linkmode external -extldflags "-static"
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=1
- CC=x86_64-linux-musl-gcc
- CXX=x86_64-linux-musl-g++
- main: ./cmd/tilt/main.go
id: tilt-windows-amd64
flags:
- -tags=osusergo
- -mod=vendor
goos:
- windows
goarch:
- amd64
env:
- CGO_ENABLED=1
- CGO_LDFLAGS=-static
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
archives:
- id: default
name_template: >-
{{ .ProjectName }}.{{ .Version }}.
{{- if eq .Os "darwin"}}mac
{{- else }}{{ .Os }}{{ end }}.
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
builds:
- tilt-darwin
- tilt-linux-amd64
- tilt-linux-arm64
- tilt-linux-arm
- tilt-windows-amd64
format_overrides:
- goos: windows
format: zip
- id: alpine
name_template: >-
{{ .ProjectName }}.{{ .Version }}.{{ .Os }}-alpine.
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
builds:
- tilt-linux-musl-amd64
- tilt-linux-musl-arm64
- id: web-assets
name_template: >-
{{ .ProjectName }}.{{ .Version }}.web-assets
meta: true
files:
- LICENSE
- pkg/assets/build/**
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs?:'
- '^tests?:'
- '^cleanup:'
- '^circleci:'
- '^ci:'
brews:
- repository:
owner: tilt-dev
name: homebrew-tap
commit_author:
name: Tilt Dev
email: [email protected]
ids:
- default
url_template: "https://github.com/tilt-dev/tilt/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://tilt.dev/"
description: "A dev environment as code for microservice apps"
install: |
bin.install "tilt"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash")
(bash_completion/"tilt").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh")
(zsh_completion/"_tilt").write output
# Install fish completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "fish")
(fish_completion/"tilt.fish").write output
test: |
system "#{bin}/tilt version"
system "#{bin}/tilt verify-install"
dockers:
- goos: linux
goarch: amd64
ids:
- tilt-linux-amd64
image_templates:
- "tiltdev/tilt:{{ .Tag }}-amd64"
- "docker/tilt:{{ .Tag }}-amd64"
dockerfile: scripts/tilt.Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description={{ .ProjectName }}"
- "--label=org.opencontainers.image.url=https://github.com/tilt-dev/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/tilt-dev/{{ .ProjectName }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Timestamp }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.licenses=Apache-2.0"
- goos: linux
goarch: arm64
goarm: ''
ids:
- tilt-linux-arm64
image_templates:
- "tiltdev/tilt:{{ .Tag }}-arm64"
- "docker/tilt:{{ .Tag }}-arm64"
dockerfile: scripts/tilt.Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description={{ .ProjectName }}"
- "--label=org.opencontainers.image.url=https://github.com/tilt-dev/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/tilt-dev/{{ .ProjectName }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Timestamp }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.licenses=Apache-2.0"
docker_manifests:
- name_template: tiltdev/{{ .ProjectName }}:{{ .Tag }}
image_templates:
- tiltdev/{{ .ProjectName }}:{{ .Tag }}-amd64
- tiltdev/{{ .ProjectName }}:{{ .Tag }}-arm64
- name_template: tiltdev/{{ .ProjectName }}:latest
image_templates:
- tiltdev/{{ .ProjectName }}:{{ .Tag }}-amd64
- tiltdev/{{ .ProjectName }}:{{ .Tag }}-arm64
- name_template: docker/{{ .ProjectName }}:{{ .Tag }}
image_templates:
- docker/{{ .ProjectName }}:{{ .Tag }}-amd64
- docker/{{ .ProjectName }}:{{ .Tag }}-arm64
- name_template: docker/{{ .ProjectName }}:latest
image_templates:
- docker/{{ .ProjectName }}:{{ .Tag }}-amd64
- docker/{{ .ProjectName }}:{{ .Tag }}-arm64
scoops:
- url_template: "https://github.com/tilt-dev/tilt/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
repository:
owner: tilt-dev
name: scoop-bucket
commit_author:
name: Tilt Dev
email: [email protected]
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://tilt.dev/"
description: "A dev environment as code for microservice apps"
license: Apache-2.0
release:
header: |
[Install Tilt](https://docs.tilt.dev/install.html) ⬇️ | [Upgrade Tilt](https://docs.tilt.dev/upgrade.html) ⬆️ | [Tilt Extensions](https://github.com/tilt-dev/tilt-extensions/) 🧰
# Uncomment these lines if you want to experiment with other
# parts of the release process without releasing new binaries.
# release:
# disable: true