forked from hansmi/prometheus-lvm-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
62 lines (54 loc) · 1.58 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
62
# Configuration for GoReleaser
# https://goreleaser.com/
project_name: prometheus-lvm-exporter
builds:
- main: .
binary: prometheus-lvm-exporter
env:
- CGO_ENABLED=0
goos:
- linux
flags:
- -trimpath
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.BuildDate={{.Date}}
nfpms:
- description: Prometheus exporter for LVM metrics
maintainer: M. Hanselmann
bindir: /usr/sbin
license: BSD-3-Clause
formats:
- deb
- rpm
dependencies:
- lvm2
contents:
- src: ./README.md
dst: /usr/share/doc/prometheus-lvm-exporter/README.md
- src: ./LICENSE
dst: /usr/share/doc/prometheus-lvm-exporter/LICENSE
- src: contrib/systemd/prometheus-lvm-exporter.service
dst: /lib/systemd/system/prometheus-lvm-exporter.service
- src: contrib/systemd/prometheus-lvm-exporter.default
dst: /etc/default/prometheus-lvm-exporter
type: config
scripts:
postinstall: "contrib/postinstall.sh"
preremove: "contrib/preremove.sh"
postremove: "contrib/postremove.sh"
archives:
- format: tar.gz
wrap_in_directory: true
files:
- LICENSE
- README.md
release:
draft: true
prerelease: auto
snapshot:
name_template: '{{ incpatch .Version }}-snapshot{{ replace (replace .Date ":" "") "-" "" }}+g{{ .ShortCommit }}'
# vim: set sw=2 sts=2 et :