-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
55 lines (49 loc) · 1.45 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
builds:
- main: main.go
binary: cambium-exporter
flags:
- -trimpath
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .Commit }}
- -X main.date={{ .Date }}
- -X main.DefaultConfigPath=/etc/cambium-exporter/config.toml
env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
mod_timestamp: "{{ .CommitTimestamp }}"
nfpms:
- id: cambium-exporter
package_name: cambium-exporter
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
vendor: Digineo GmbH
homepage: https://www.digineo.de/
maintainer: Dominik Menke <[email protected]>
description: Prometheus Exporter for Cambium cnMaestro Cloud controller
formats: [deb]
license: MIT
bindir: /usr/bin
section: default
priority: extra
contents:
- src: debian/cambium-exporter.service
dst: /lib/systemd/system/cambium-exporter.service
- src: debian/default
dst: /etc/default/cambium-exporter
type: config
- src: config.example.toml
dst: /etc/cambium-exporter/config.toml
type: config
file_info:
mode: 0600
owner: cambium-exporter
group: cambium-exporter
scripts:
postinstall: debian/postinstall.sh
preremove: debian/preremove.sh
postremove: debian/postremove.sh