-
Notifications
You must be signed in to change notification settings - Fork 21
/
.goreleaser.yaml
71 lines (62 loc) · 1.32 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
63
64
65
66
67
68
69
70
71
project_name: sbomqs
version: 2
env:
- GO111MODULE=on
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: binaries
binary: sbomqs-{{ .Os }}-{{ .Arch }}
no_unique_dist_dir: true
main: .
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- "{{ .Env.LDFLAGS }}"
env:
- CGO_ENABLED=0
nfpms:
- id: sbomqs
package_name: sbomqs
file_name_template: "{{ .ConventionalFileName }}"
vendor: Interlynk
homepage: https://interlynk.io
maintainer: Interlynk Authors [email protected]
builds:
- binaries
description: SBOM quality score - Quality metrics for your sboms.
license: "Apache License 2.0"
formats:
- apk
- deb
- rpm
contents:
- src: /usr/bin/sbomqs-{{ .Os }}-{{ .Arch }}
dst: /usr/bin/sbomqs
type: "symlink"
archives:
- format: binary
name_template: "{{ .Binary }}"
allow_different_binary_count: true
snapshot:
name_template: SNAPSHOT-{{ .ShortCommit }}
release:
prerelease: allow
draft: true
sboms:
-
artifacts: binary
documents:
- "${artifact}.spdx.sbom"