-
Notifications
You must be signed in to change notification settings - Fork 18
/
.goreleaser.yml
39 lines (39 loc) · 1.34 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
---
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
ldflags:
- -w -s
-X github.com/prometheus/common/version.Version={{ .Version }}
-X github.com/prometheus/common/version.Revision={{ .Commit }}
-X github.com/prometheus/common/version.Branch={{ .Branch }}
-X github.com/prometheus/common/version.BuildUser=greenpau
-X github.com/prometheus/common/version.BuildDate={{ .Date }}
-X github.com/greenpau/ovn_exporter/pkg/ovn_exporter.appVersion={{ .Version }}
-X github.com/greenpau/ovn_exporter/pkg/ovn_exporter.gitBranch={{ .Branch }}
-X github.com/greenpau/ovn_exporter/pkg/ovn_exporter.gitCommit={{ .Commit }}
-X github.com/greenpau/ovn_exporter/pkg/ovn_exporter.buildUser=greenpau
-X github.com/greenpau/ovn_exporter/pkg/ovn_exporter.buildDate={{ .Date }}
main: './cmd/ovn_exporter'
asmflags:
- 'all=-trimpath={{.Env.GOPATH}}'
gcflags:
- 'all=-trimpath={{.Env.GOPATH}}'
binary: ovn-exporter
archives:
- name_template: "ovn-exporter_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'