-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
40 lines (40 loc) · 1.1 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
builds:
- main: ./
flags: -a -tags netgo
ldflags: |
-s -w
-X github.com/kobtea/dummy_exporter/vendor/github.com/prometheus/common/version.Version={{.Version}}
-X github.com/kobtea/dummy_exporter/vendor/github.com/prometheus/common/version.Revision={{.Commit}}
-X github.com/kobtea/dummy_exporter/vendor/github.com/prometheus/common/version.Branch={{.Env.BUILD_BRANCH}}
-X github.com/kobtea/dummy_exporter/vendor/github.com/prometheus/common/version.BuildUser={{.Env.BUILD_USER}}@{{.Env.BUILD_HOST}}
-X github.com/kobtea/dummy_exporter/vendor/github.com/prometheus/common/version.BuildDate={{.Env.BUILD_DATE}}
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
nfpm:
homepage: https://github.com/kobtea/dummy_exporter
maintainer: Hiroaki Kobayashi <[email protected]>
description: Dummy exporter
license: MIT
formats:
- deb
- rpm
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^cut:'
- '^typo'