1+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+ version : 2
3+
4+ env :
5+ - CGO_ENABLED=0
6+
7+ before :
8+ hooks :
9+ - go mod tidy
10+ - go mod vendor
11+
12+ builds :
13+ - id : binary
14+ goos :
15+ - windows
16+ - darwin
17+ - linux
18+ goarch :
19+ - amd64
20+ - arm
21+ - arm64
22+ - " 386"
23+ goarm :
24+ - " 6"
25+ - " 7"
26+ ignore :
27+ - goos : windows
28+ goarch : arm
29+ - goos : windows
30+ goarch : arm64
31+ ldflags :
32+ - -s -w
33+ - -X main.version={{.Version}}
34+ - -X main.commit={{.Commit}}
35+ - -X main.date={{.Date}}
36+ - -X main.buildSource=binaryRelease
37+
38+ - id : snap
39+ goos :
40+ - linux
41+ goarch :
42+ - amd64
43+ - arm
44+ - arm64
45+ - " 386"
46+ ldflags :
47+ - -s -w
48+ - -X main.version={{.Version}}
49+ - -X main.commit={{.Commit}}
50+ - -X main.date={{.Date}}
51+ - -X main.buildSource=snap
52+
53+ archives :
54+ - id : default
55+ builds :
56+ - binary
57+ name_template : >-
58+ {{ .ProjectName }}_
59+ {{- .Version }}_
60+ {{- title .Os }}_
61+ {{- if eq .Arch "amd64" }}x86_64
62+ {{- else if eq .Arch "386" }}i386
63+ {{- else }}{{ .Arch }}{{ end }}
64+ format_overrides :
65+ - goos : windows
66+ format : zip
67+
68+ checksum :
69+ name_template : " checksums.txt"
70+
71+ snapshot :
72+ version_template : " {{ .Tag }}-next"
73+
74+ changelog :
75+ sort : asc
76+ filters :
77+ exclude :
78+ - " ^docs:"
79+ - " ^test:"
80+ - " ^bump"
81+ - " ^chore:"
82+ - Merge pull request
83+ - Merge branch
84+
85+ release :
86+ github :
87+ owner : rezmoss
88+ name : sbomlyze
89+ draft : false
90+ prerelease : auto
91+ name_template : " {{.ProjectName}} v{{.Version}}"
92+
93+ # brews:
94+ # - repository:
95+ # owner: rezmoss
96+ # name: homebrew-sbomlyze
97+ # token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
98+
99+ # directory: Formula
100+ # homepage: "https://github.com/rezmoss/sbomlyze"
101+ # description: "A fast, reliable SBOM diff and analysis tool"
102+ # license: "MIT"
103+
104+ # test: |
105+ # system "#{bin}/sbomlyze", "--help"
106+
107+ # install: |
108+ # bin.install "sbomlyze"
109+
110+ # Optional: Docker images
111+ # dockers:
112+ # - image_templates:
113+ # - "ghcr.io/rezmoss/sbomlyze:{{ .Version }}"
114+ # - "ghcr.io/rezmoss/sbomlyze:latest"
115+ # dockerfile: Dockerfile
116+ # build_flag_templates:
117+ # - "--label=org.opencontainers.image.title={{ .ProjectName }}"
118+ # - "--label=org.opencontainers.image.version={{ .Version }}"
0 commit comments