-
Notifications
You must be signed in to change notification settings - Fork 8
/
.goreleaser.yml
49 lines (45 loc) · 1.06 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
project_name: credhub_exporter
builds:
-
&template
id: binary
binary: credhub_exporter
env:
- CGO_ENABLED=0
ldflags:
- -s
- -w
- -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={{.Env.USER}}
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
goos:
- linux
- darwin
goarch:
- amd64
archives:
- id: archives
builds:
- binary
format: "tar.gz"
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
wrap_in_directory: true
files:
- LICENSE*
- README*
- CHANGELOG*
- docs/*
- assets/*
- static/*
- templates/*
checksum:
name_template: checksums.txt
algorithm: sha256
release:
github:
owner: orange-cloudfoundry
name: credhub_exporter
prerelease: auto
name_template: '{{.Tag}}'