-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.goreleaser.yaml
62 lines (56 loc) · 1.26 KB
/
.goreleaser.yaml
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
version: 2
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -buildid=
- -w
- -s
- -X github.com/dadrus/heimdall/version.Version={{ .Tag }}
flags:
- -trimpath
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- '7'
- '6'
ignore:
- goos: darwin
goarch: arm
- goos: darwin
goarch: '386'
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
changelog:
disable: true
archives:
- format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- CHANGELOG.md
- CycloneDX-SBOM.json
checksum:
name_template: "{{ .ProjectName }}_{{ .Tag }}_checksums.txt"
signs:
- cmd: cosign
signature: "${artifact}-keyless.sig"
certificate: "${artifact}-keyless.pem"
args:
- "sign-blob"
- "--output-signature=${artifact}-keyless.sig"
- "--output-certificate=${artifact}-keyless.pem"
- "${artifact}"
- "--yes"
artifacts: all