-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yml
62 lines (56 loc) · 1.2 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
version: 2
project_name: capture
builds:
- id: capture
main: ./cmd/capture
env:
- CGO_ENABLED=0
goos:
- linux
# Disable windows and darwin builds for now, because the app is not working on these platforms
# - windows
# - darwin
goarch:
# Support multiple cpu architectures
- amd64
- arm64
ignore:
# Ignore the arm64 build on windows
- goos: windows
goarch: arm64
kos:
- id: capture
platforms:
- linux/amd64
- linux/arm64
tags:
- latest
- '{{.Tag}}'
main: ./cmd/capture
flags:
- -trimpath
ldflags:
- -s -w
- -extldflags "-static"
creation_time: "{{.CommitTimestamp}}"
sbom: spdx
env:
- CGO_ENABLED=0
bare: true
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: zip
checksum:
# Generate checksum files to confirm the integrity of the files.
# `sha256sum <file>`
name_template: 'checksums.txt'
algorithm: sha256
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'