forked from stateful/runme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
190 lines (178 loc) · 5.05 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
project_name: runme
snapshot:
name_template: "{{ incpatch .Version }}-next"
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/internal/version.BuildDate={{ .CommitDate }}'
-X 'github.com/stateful/runme/internal/version.BuildVersion={{.Version}}'
-X 'github.com/stateful/runme/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/internal/version.BuildDate={{ .CommitDate }}'
-X 'github.com/stateful/runme/internal/version.BuildVersion={{.Version}}'
-X 'github.com/stateful/runme/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 }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
blobs:
- provider: gs
bucket: runme-artifacts-41eac6
ids:
- cli
folder: "{{ .Version }}"
brews:
- name: runme
ids:
- cli
homepage: https://stateful.com
description: "Execute code snippets directly from Markdown files."
tap:
owner: stateful
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://download.stateful.com/runme/{{ .Version }}/{{ .ArtifactName }}"
dependencies: []
skip_upload: auto
folder: 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
replacements:
amd64: x86_64
vendor: Stateful Inc.
homepage: https://stateful.com
maintainer: Sebastian Tiedtke <[email protected]>
description: "Execute code snippets directly from Markdown files."
file_name_template: "{{ .PackageName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
formats:
- deb
- apk
- rpm
scoop:
url_template: "https://download.stateful.com/runme/{{ .Version }}/{{ .ArtifactName }}"
bucket:
owner: stateful
name: scoop-bucket
token: "{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}"
commit_author:
name: release-bot
email: [email protected]
homepage: "https://stateful.com"
description: "Execute code snippets directly from Markdown files."
skip_upload: auto
dockers:
- goos: linux
goarch: amd64
image_templates:
- "statefulhq/runme:latest"
- "statefulhq/runme:{{ .Version }}-alpine-amd64"
skip_push: auto
dockerfile: Dockerfile.alpine
- goos: linux
goarch: amd64
image_templates:
- "statefulhq/runme:latest"
- "statefulhq/runme:{{ .Version }}-ubuntu-amd64"
skip_push: auto
dockerfile: Dockerfile.ubuntu
- goos: linux
goarch: arm64
image_templates:
- "statefulhq/runme:{{ .Version }}-alpine-arm64"
skip_push: auto
dockerfile: Dockerfile.alpine
- goos: linux
goarch: arm64
image_templates:
- "statefulhq/runme:{{ .Version }}-ubuntu-arm64"
skip_push: auto
dockerfile: Dockerfile.ubuntu
docker_manifests:
- name_template: 'statefulhq/runme:{{ .Version }}'
skip_push: auto
image_templates:
- 'statefulhq/runme:{{ .Version }}-alpine-amd64'
- 'statefulhq/runme:{{ .Version }}-alpine-arm64'
- name_template: 'statefulhq/runme:latest-alpine'
skip_push: auto
image_templates:
- 'statefulhq/runme:{{ .Version }}-alpine-amd64'
- 'statefulhq/runme:{{ .Version }}-alpine-arm64'
- name_template: 'statefulhq/runme:latest-ubuntu'
skip_push: auto
image_templates:
- 'statefulhq/runme:{{ .Version }}-ubuntu-amd64'
- 'statefulhq/runme:{{ .Version }}-ubuntu-arm64'
- name_template: 'statefulhq/runme:{{ .Version }}-alpine'
skip_push: auto
image_templates:
- 'statefulhq/runme:{{ .Version }}-alpine-amd64'
- 'statefulhq/runme:{{ .Version }}-alpine-arm64'
- name_template: 'statefulhq/runme:{{ .Version }}-ubuntu'
skip_push: auto
image_templates:
- 'statefulhq/runme:{{ .Version }}-ubuntu-amd64'
- 'statefulhq/runme:{{ .Version }}-ubuntu-arm64'