-
Notifications
You must be signed in to change notification settings - Fork 14
/
.goreleaser.yml
82 lines (71 loc) · 1.41 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
project_name: mdtoc
env:
- CGO_ENABLED=0
- COSIGN_YES=true
before:
hooks:
- go mod tidy
# - /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
gomod:
proxy: true
builds:
- id: mdtoc
dir: .
no_unique_dist_dir: true
binary: mdtoc-{{ .Arch }}-{{ .Os }}
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
- arm
goarm:
- '7'
ignore:
- goos: windows
goarch: arm
flags:
- -trimpath
ldflags:
- "{{ .Env.LDFLAGS }}"
archives:
- format: binary
name_template: "{{ .Binary }}"
allow_different_binary_count: true
signs:
# Keyless
- id: mdtoc-keyless
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
cmd: cosign
args: ["sign-blob", "--output-signature", "${artifact}.sig", "--output-certificate", "${artifact}.pem", "${artifact}"]
artifacts: all
sboms:
- id: mdtoc
cmd: bom
args:
- generate
- "--output"
- "mdtoc-bom.json.spdx"
- "-d"
- "../"
- "-c"
- "../.mdtoc-bom-config.yaml"
- "--format"
- "json"
artifacts: any
documents:
- "mdtoc-bom.json.spdx"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
release:
github:
owner: kubernetes-sigs
name: mdtoc
prerelease: auto
changelog:
disable: true