-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
54 lines (50 loc) · 1.16 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
project_name: boshupdate_exporter
builds:
-
&template
id: exporter
dir: exporter
binary: boshupdate_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
-
<<: *template
id: cli
dir: cli
binary: boshupdate_cli
archives:
- id: archives
builds: [ exporter, cli ]
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: boshupdate_exporter
prerelease: auto
name_template: '{{.Tag}}'