-
Notifications
You must be signed in to change notification settings - Fork 8
/
.goreleaser.yml
58 lines (58 loc) · 1.51 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
---
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
env:
- CGO_ENABLED=1
builds:
- id: amd64
main: cgroup_exporter.go
env:
- CC=x86_64-linux-gnu-gcc
goos:
- linux
goarch:
- amd64
ldflags:
- -extldflags "-static"
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.FullCommit}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser=goreleaser
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
- id: arm64
main: cgroup_exporter.go
env:
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
ldflags:
- -extldflags "-static"
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.FullCommit}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser=goreleaser
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
archives:
- id: archive
builds:
- amd64
- arm64
files:
- LICENSE
- CHANGELOG.md
name_template: "cgroup_exporter-{{ .Version }}.{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
checksum:
name_template: 'checksums.txt'
release:
prerelease: auto
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'