-
Notifications
You must be signed in to change notification settings - Fork 44
/
.goreleaser.yml
217 lines (203 loc) · 5.71 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
project_name: runme
version: 2
snapshot:
name_template: "{{ incpatch .Version }}-next"
git:
tag_sort: -version:creatordate
builds:
- id: cli
main: .
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w
-X 'github.com/stateful/runme/v3/internal/version.BuildDate={{ .CommitDate }}'
-X 'github.com/stateful/runme/v3/internal/version.BuildVersion={{.Version}}'
-X 'github.com/stateful/runme/v3/internal/version.Commit={{.Commit}}'
- id: wasm
main: ./web
goos:
- js
goarch:
- wasm
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w
-X 'github.com/stateful/runme/v3/internal/version.BuildDate={{ .CommitDate }}'
-X 'github.com/stateful/runme/v3/internal/version.BuildVersion={{.Version}}'
-X 'github.com/stateful/runme/v3/internal/version.Commit={{.Commit}}'
release:
prerelease: auto
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore"
- Merge pull request
- Merge branch
- go mod tidy
archives:
- id: cli
builds:
- cli
- wasm
name_template: >-
{{- .ProjectName }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end -}}
{{ if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
blobs:
- provider: gs
bucket: "{{ .Env.GS_BUCKET }}"
ids:
- cli
directory: "{{ .Version }}"
brews:
- name: runme
ids:
- cli
homepage: https://runme.dev
description: "Execute your runbooks, docs, and READMEs."
repository:
owner: stateful
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://download.stateful.com/runme/{{ .Version }}/{{ .ArtifactName }}"
dependencies: []
skip_upload: auto
directory: Formula
download_strategy: CurlDownloadStrategy
commit_author:
name: release-bot
email: [email protected]
install: |
bin.install "runme"
(bash_completion/"runme").write `#{bin}/runme completion bash`
(fish_completion/"runme.fish").write `#{bin}/runme completion fish`
(zsh_completion/"_runme").write `#{bin}/runme completion zsh`
test: |
assert_match "runme #{version}", shell_output("#{bin}/runme version")
nfpms:
- id: cli
package_name: runme
builds:
- cli
vendor: Stateful Inc.
homepage: https://runme.dev
maintainer: Sebastian Tiedtke <[email protected]>
description: "Execute your runbooks, docs, and READMEs."
file_name_template: >-
{{- .PackageName }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end -}}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
{{- if .Mips }}_{{ .Mips }}{{ end -}}
formats:
- deb
- apk
- rpm
scoops:
- url_template: "https://download.stateful.com/runme/{{ .Version }}/{{ .ArtifactName }}"
repository:
owner: stateful
name: scoop-bucket
token: "{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}"
commit_author:
name: release-bot
email: [email protected]
homepage: https://runme.dev
description: "Execute your runbooks, docs, and READMEs."
skip_upload: auto
dockers:
- image_templates:
- "statefulhq/runme:{{ .Version }}-alpine-amd64"
use: buildx
dockerfile: docker/alpine.Dockerfile
goos: linux
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
skip_push: auto
- image_templates:
- "statefulhq/runme:{{ .Version }}-ubuntu-amd64"
use: buildx
dockerfile: docker/ubuntu.Dockerfile
goos: linux
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
skip_push: auto
- image_templates:
- "statefulhq/runme:{{ .Version }}-alpine-arm64v8"
use: buildx
dockerfile: docker/alpine.Dockerfile
goos: linux
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
skip_push: auto
- image_templates:
- "statefulhq/runme:{{ .Version }}-ubuntu-arm64v8"
use: buildx
dockerfile: docker/ubuntu.Dockerfile
goos: linux
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
skip_push: auto
docker_manifests:
- name_template: "statefulhq/runme:latest"
image_templates:
- "statefulhq/runme:{{ .Version }}-alpine-amd64"
- "statefulhq/runme:{{ .Version }}-alpine-arm64v8"
skip_push: auto
- name_template: "statefulhq/runme:latest-alpine"
image_templates:
- "statefulhq/runme:{{ .Version }}-alpine-amd64"
- "statefulhq/runme:{{ .Version }}-alpine-arm64v8"
skip_push: auto
- name_template: "statefulhq/runme:latest-ubuntu"
image_templates:
- "statefulhq/runme:{{ .Version }}-ubuntu-amd64"
- "statefulhq/runme:{{ .Version }}-ubuntu-arm64v8"
skip_push: auto
- name_template: "statefulhq/runme:{{ .Version }}"
image_templates:
- "statefulhq/runme:{{ .Version }}-alpine-amd64"
- "statefulhq/runme:{{ .Version }}-alpine-arm64v8"
skip_push: auto
- name_template: "statefulhq/runme:{{ .Version }}-alpine"
skip_push: auto
image_templates:
- "statefulhq/runme:{{ .Version }}-alpine-amd64"
- "statefulhq/runme:{{ .Version }}-alpine-arm64v8"
- name_template: "statefulhq/runme:{{ .Version }}-ubuntu"
skip_push: auto
image_templates:
- "statefulhq/runme:{{ .Version }}-ubuntu-amd64"
- "statefulhq/runme:{{ .Version }}-ubuntu-arm64v8"