-
Notifications
You must be signed in to change notification settings - Fork 25
/
.goreleaser.yml
61 lines (53 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
-
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
- openbsd
- netbsd
- darwin
- windows
goarch:
- 386
- amd64
ldflags:
- -s -w -X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.BuildDate="{{.Date}}" -X github.com/prometheus/common/version.Branch={{.Tag}} -X github.com/prometheus/common/version.Revision={{.FullCommit}} -X github.com/prometheus/common/version.BuildUser="{{.Env.USER}}"
archives:
-
name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- NOTICE
checksum:
name_template: 'sha256sums.txt'
algorithm: sha256
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
dockers:
-
goos: linux
goarch: amd64
image_templates:
- 'edgard/iperf3-exporter:{{ .Tag }}'
- 'edgard/iperf3-exporter:latest'
build_flag_templates:
- '--label=org.label-schema.schema-version=1.0'
- '--label=org.label-schema.version={{.Version}}'
- '--label=org.label-schema.name={{.ProjectName}}'