Debian Codegraph @

build/goreleaser/stable.yaml

raw
1 ################################################################################
2 # #
3 # GoReleaser OSS Stable Release Configuration #
4 # #
5 # Project: Shoutrrr #
6 # Repository: https://github.com/nicholas-fedor/shoutrrr/ #
7 # #
8 # GoReleaser URL: https://goreleaser.com/ #
9 # yaml-language-server: $schema=https://goreleaser.com/static/schema.json #
10 # vim: set ts=2 sw=2 tw=0 fo=cnqoj #
11 # #
12 ################################################################################
13
14 ################################################################################
15 # Configuration Version
16 version: 2
17 ################################################################################
18
19 ################################################################################
20 # Project Configuration
21 # https://goreleaser.com/customization/project/
22 ################################################################################
23 project_name: "shoutrrr"
24
25 ################################################################################
26 # Verifiable Builds (Supply Chain Security)
27 # https://goreleaser.com/customization/builds/verifiable_builds/
28 ################################################################################
29 gomod:
30 proxy: true
31 env:
32 - GOPROXY=https://proxy.golang.org,direct
33 - GOSUMDB=sum.golang.org
34
35 ################################################################################
36 # Go Binary Build Configuration
37 # https://goreleaser.com/customization/builds/go/
38 ################################################################################
39 builds:
40 - id: "shoutrrr-binary"
41 main: "./shoutrrr/main.go"
42 binary: "shoutrrr"
43 flags:
44 - -trimpath
45 ldflags:
46 - -s -w
47 - -X main.version={{ .Version }}
48 - -X main.commit={{ .Commit }}
49 - -X main.date={{ .CommitDate }}
50 - -X github.com/nicholas-fedor/shoutrrr/internal/meta.Version={{ .Version }}
51 - -X github.com/nicholas-fedor/shoutrrr/internal/meta.Commit={{ .Commit }}
52 - -X github.com/nicholas-fedor/shoutrrr/internal/meta.Date={{ .CommitDate }}
53 env:
54 - CGO_ENABLED=0
55 goos:
56 - linux
57 - windows
58 - darwin
59 goarch:
60 - amd64
61 - "386"
62 - arm
63 - arm64
64 - riscv64
65 ignore:
66 - goos: windows
67 goarch: riscv64
68 - goos: windows
69 goarch: arm
70 - goos: darwin
71 goarch: "386"
72 - goos: darwin
73 goarch: arm
74 - goos: darwin
75 goarch: riscv64
76 mod_timestamp: "{{ .CommitTimestamp }}"
77
78 ################################################################################
79 # Binary Archive Configuration
80 # https://goreleaser.com/customization/package/archives/
81 ################################################################################
82 archives:
83 - formats: ["tar.gz"]
84 name_template: >-
85 {{- .ProjectName }}_
86 {{- if eq .Os "darwin" }}macOS
87 {{- else }}{{ .Os }}{{ end }}_
88 {{- if eq .Arch "amd64" }}amd64
89 {{- else if eq .Arch "386" }}i386
90 {{- else if eq .Arch "arm" }}armhf
91 {{- else if eq .Arch "arm64" }}arm64v8
92 {{- else if eq .Arch "riscv64" }}riscv64
93 {{- else }}{{ .Arch }}{{ end }}_
94 {{- .Version -}}
95 format_overrides:
96 - goos: windows
97 formats: ["zip"]
98 files:
99 - LICENSE.md
100 builds_info:
101 mtime: "{{ .CommitTimestamp }}"
102
103 ################################################################################
104 # Source Archive Configuration
105 ################################################################################
106 source:
107 enabled: true
108 name_template: "shoutrrr.src"
109
110 ################################################################################
111 # Checksums Configuration
112 # https://goreleaser.com/customization/package/checksum/
113 ################################################################################
114 checksum:
115 name_template: "checksums.txt"
116
117 ################################################################################
118 # Docker Digests Configuration
119 # https://goreleaser.com/customization/package/docker_digests/
120 ################################################################################
121 docker_digest:
122 name_template: "digests.txt"
123
124 ################################################################################
125 # Docker Image Build Configuration
126 # https://goreleaser.com/customization/package/dockers_v2/
127 ################################################################################
128 dockers_v2:
129 ##############################################################################
130 # Multi-platform manifest (all platforms) - non-prefixed tags only
131 ##############################################################################
132 - id: "shoutrrr-manifest"
133 ids: ["shoutrrr-binary"]
134 images:
135 - "nickfedor/shoutrrr"
136 - "ghcr.io/nicholas-fedor/shoutrrr"
137 tags:
138 - "{{ .Major }}"
139 - "{{ .Major }}.{{ .Minor }}"
140 - "{{ .Version }}"
141 - "latest"
142 dockerfile: build/docker/Dockerfile
143 platforms:
144 - linux/amd64
145 - linux/386
146 - linux/arm/v6
147 - linux/arm64
148 - linux/riscv64
149 labels:
150 org.opencontainers.image.name: "shoutrrr"
151 org.opencontainers.image.created: "{{ .Date }}"
152 org.opencontainers.image.version: "{{ .Version }}"
153 org.opencontainers.image.revision: "{{ .FullCommit }}"
154 org.opencontainers.image.source: "{{ .GitURL }}"
155 org.opencontainers.image.description: "The Shoutrrr CLI"
156 org.opencontainers.image.licenses: "MIT"
157 org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr"
158 org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com"
159
160 ##############################################################################
161 # Platform-specific images - platform-prefixed tags only
162 ##############################################################################
163 - id: "shoutrrr-amd64"
164 ids: ["shoutrrr-binary"]
165 images:
166 - "nickfedor/shoutrrr"
167 - "ghcr.io/nicholas-fedor/shoutrrr"
168 tags:
169 - "amd64-{{ .Major }}"
170 - "amd64-{{ .Major }}.{{ .Minor }}"
171 - "amd64-{{ .Version }}"
172 - "amd64-latest"
173 dockerfile: build/docker/Dockerfile
174 platforms:
175 - linux/amd64
176 labels:
177 org.opencontainers.image.name: "shoutrrr"
178 org.opencontainers.image.created: "{{ .Date }}"
179 org.opencontainers.image.version: "{{ .Version }}"
180 org.opencontainers.image.revision: "{{ .FullCommit }}"
181 org.opencontainers.image.source: "{{ .GitURL }}"
182 org.opencontainers.image.description: "The Shoutrrr CLI"
183 org.opencontainers.image.licenses: "MIT"
184 org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr"
185 org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com"
186
187 - id: "shoutrrr-i386"
188 ids: ["shoutrrr-binary"]
189 images:
190 - "nickfedor/shoutrrr"
191 - "ghcr.io/nicholas-fedor/shoutrrr"
192 tags:
193 - "i386-{{ .Major }}"
194 - "i386-{{ .Major }}.{{ .Minor }}"
195 - "i386-{{ .Version }}"
196 - "i386-latest"
197 dockerfile: build/docker/Dockerfile
198 platforms:
199 - linux/386
200 labels:
201 org.opencontainers.image.name: "shoutrrr"
202 org.opencontainers.image.created: "{{ .Date }}"
203 org.opencontainers.image.version: "{{ .Version }}"
204 org.opencontainers.image.revision: "{{ .FullCommit }}"
205 org.opencontainers.image.source: "{{ .GitURL }}"
206 org.opencontainers.image.description: "The Shoutrrr CLI"
207 org.opencontainers.image.licenses: "MIT"
208 org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr"
209 org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com"
210
211 - id: "shoutrrr-armhf"
212 ids: ["shoutrrr-binary"]
213 images:
214 - "nickfedor/shoutrrr"
215 - "ghcr.io/nicholas-fedor/shoutrrr"
216 tags:
217 - "armhf-{{ .Major }}"
218 - "armhf-{{ .Major }}.{{ .Minor }}"
219 - "armhf-{{ .Version }}"
220 - "armhf-latest"
221 dockerfile: build/docker/Dockerfile
222 platforms:
223 - linux/arm/v6
224 labels:
225 org.opencontainers.image.name: "shoutrrr"
226 org.opencontainers.image.created: "{{ .Date }}"
227 org.opencontainers.image.version: "{{ .Version }}"
228 org.opencontainers.image.revision: "{{ .FullCommit }}"
229 org.opencontainers.image.source: "{{ .GitURL }}"
230 org.opencontainers.image.description: "The Shoutrrr CLI"
231 org.opencontainers.image.licenses: "MIT"
232 org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr"
233 org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com"
234
235 - id: "shoutrrr-arm64v8"
236 ids: ["shoutrrr-binary"]
237 images:
238 - "nickfedor/shoutrrr"
239 - "ghcr.io/nicholas-fedor/shoutrrr"
240 tags:
241 - "arm64v8-{{ .Major }}"
242 - "arm64v8-{{ .Major }}.{{ .Minor }}"
243 - "arm64v8-{{ .Version }}"
244 - "arm64v8-latest"
245 dockerfile: build/docker/Dockerfile
246 platforms:
247 - linux/arm64
248 labels:
249 org.opencontainers.image.name: "shoutrrr"
250 org.opencontainers.image.created: "{{ .Date }}"
251 org.opencontainers.image.version: "{{ .Version }}"
252 org.opencontainers.image.revision: "{{ .FullCommit }}"
253 org.opencontainers.image.source: "{{ .GitURL }}"
254 org.opencontainers.image.description: "The Shoutrrr CLI"
255 org.opencontainers.image.licenses: "MIT"
256 org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr"
257 org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com"
258
259 - id: "shoutrrr-riscv64"
260 ids: ["shoutrrr-binary"]
261 images:
262 - "nickfedor/shoutrrr"
263 - "ghcr.io/nicholas-fedor/shoutrrr"
264 tags:
265 - "riscv64-{{ .Major }}"
266 - "riscv64-{{ .Major }}.{{ .Minor }}"
267 - "riscv64-{{ .Version }}"
268 - "riscv64-latest"
269 dockerfile: build/docker/Dockerfile
270 platforms:
271 - linux/riscv64
272 labels:
273 org.opencontainers.image.name: "shoutrrr"
274 org.opencontainers.image.created: "{{ .Date }}"
275 org.opencontainers.image.version: "{{ .Version }}"
276 org.opencontainers.image.revision: "{{ .FullCommit }}"
277 org.opencontainers.image.source: "{{ .GitURL }}"
278 org.opencontainers.image.description: "The Shoutrrr CLI"
279 org.opencontainers.image.licenses: "MIT"
280 org.opencontainers.image.url: "https://github.com/nicholas-fedor/shoutrrr"
281 org.opencontainers.image.documentation: "https://shoutrrr.nickfedor.com"
282
283 ################################################################################
284 # Software Bill of Materials (SBOM) Configuration
285 # https://goreleaser.com/customization/sbom/
286 ################################################################################
287 sboms:
288 - id: binaries
289 artifacts: archive
290 - id: source
291 artifacts: source
292
293 ################################################################################
294 # Signing Configuration (Cosign - Keyless OIDC)
295 # https://goreleaser.com/customization/sign/
296 ################################################################################
297 signs:
298 - id: cosign-checksums
299 cmd: cosign
300 args:
301 - "sign-blob"
302 - "--bundle=${signature}"
303 - "${artifact}"
304 - "--yes"
305 artifacts: checksum
306 output: true
307
308 ################################################################################
309 # Docker Image Signing (Cosign)
310 # https://goreleaser.com/customization/sign/docker_sign/
311 ################################################################################
312 docker_signs:
313 - id: cosign-images
314 cmd: cosign
315 args:
316 - "sign"
317 - "${artifact}@${digest}"
318 - "--yes"
319 output: true
320
321 ################################################################################
322 # Changelog Configuration
323 # https://goreleaser.com/customization/changelog/
324 ################################################################################
325 changelog:
326 disable: true