forked from czerwonk/junos_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
39 lines (37 loc) · 873 Bytes
/
.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
project_name: prometheus-junos-exporter
dist: artifacts
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- freebsd
goarch:
- amd64
- arm
- arm64
ignore:
- goos: freebsd
goarch: arm64
ldflags: -s -w -X main.version={{.Version}}
binary: junos_exporter
nfpms:
- homepage: https://github.com/czerwonk/junos_exporter
description: JunOS Exporter for Prometheus
maintainer: Daniel Czerwonk
license: MIT License
contents:
- src: .packaging/defaults
dst: /etc/default/prometheus-junos-exporter
- src: .packaging/prometheus-junos-exporter.service
dst: /usr/lib/systemd/system/prometheus-junos-exporter.service
formats:
- deb
dependencies:
- systemd
scripts:
postinstall: .packaging/postinstall.sh