-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
52 lines (51 loc) · 1.39 KB
/
.goreleaser.yml
File metadata and controls
52 lines (51 loc) · 1.39 KB
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
---
version: 2
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Tag}} -X main.Date={{.CommitDate}}
mod_timestamp: '{{.CommitTimestamp}}'
archives:
- formats:
- binary
name_template: >-
{{ .ProjectName }}_
{{- if eq .Os "linux" }}Linux
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
prerelease: auto
dockers_v2:
- images:
- 'arnested/{{ .ProjectName }}'
tags:
- '{{ .Tag }}'
- 'v{{ .Major }}'
- 'latest'
sbom: true
labels:
"org.opencontainers.image.created": "{{.CommitDate}}"
"org.opencontainers.image.revision": "{{.FullCommit}}"
"org.opencontainers.image.source": "https://github.com/arnested/{{.ProjectName}}"
"org.opencontainers.image.title": "healthy"
"org.opencontainers.image.description": "Command healthy waits for Docker container(s) to become healthy"
"org.opencontainers.image.version": "{{.Version}}"
"org.opencontainers.image.licenses": "MIT"
"org.opencontainers.image.authors": "Arne Jørgensen <arne@arnested.dk>"