-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.goreleaser.yml
57 lines (49 loc) · 1.22 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
gomod:
proxy: true
report_sizes: false
builds:
- goos:
- darwin
- windows
- linux
- freebsd
- netbsd
- openbsd
- solaris
goarch:
- "386"
- amd64
- arm
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s
- -w
- -extldflags
- -static
- -X {{.ModulePath}}/github.projectName={{.ProjectName}}
- -X {{.ModulePath}}/github.projectDocs=https://{{.ModulePath}}
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
- -X github.com/prometheus/common/version.Revision={{.Commit}}
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser={{.Env.USER}}
no_unique_dist_dir: true
binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
archives:
- format: binary
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
checksum:
name_template: 'SHA256SUMS'
algorithm: sha256
signs:
- id: sha256
artifacts: checksum
sboms:
- artifacts: binary
snapshot:
name_template: "{{ incpatch .Version }}-rc"
release:
draft: true