forked from communi5/prometheus-c5-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
89 lines (83 loc) · 3.26 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: prometheus-c5-exporter
before:
hooks:
- go mod download
- go mod tidy
builds:
- binary: prometheus-c5-exporter
env:
- CGO_ENABLED=0
goos:
- linux
# - darwin
goarch:
- amd64
archives:
# replacements:
# linux: Linux
# windows: Windows
# amd64: x86_64
#files:
# - README.md
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
disable: true
nfpms:
- # ID of the nfpm config, must be unique.
# Defaults to "default".
# You can change the name of the package.
# Default: `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
# name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
vendor: Communi5 Technologies GmbH
homepage: https://github.com/communi5/prometheus-c5-exporter/
maintainer: Robert Traussnig<r.traussnig@communi5.com>
description: A prometheus exporter for C5 application processes
license: Commercial
formats:
- deb
- rpm
scripts:
# preinstall: "resources/scripts/preinstall.sh"
postinstall: "resources/scripts/postinstall.sh"
# preremove: "resources/scripts/preremove.sh"
# postremove: "resources/scripts/postremove.sh"
bindir: /usr/bin
contents:
- src: "resources/prometheus-c5-exporter.service"
dst: "/usr/lib/systemd/system/prometheus-c5-exporter.service"
- src: "resources/prometheus-c5-exporter.initd"
dst: "/etc/init.d/prometheus-c5-exporter"
- src: "README.md"
dst: "/usr/share/doc/prometheus-c5-exporter/README.md"
- src: "resources/rsyslog.d/prometheus-c5-exporter.conf"
dst: "/usr/share/doc/prometheus-c5-exporter/rsyslog.d/prometheus-c5-exporter.conf"
- src: "resources/logrotate.d/prometheus-c5-exporter.conf"
dst: "/usr/share/doc/prometheus-c5-exporter/logrotate.d/prometheus-c5-exporter.conf"
- src: "resources/grafana/dashboard-c5-proxy-details.json"
dst: "/usr/share/doc/prometheus-c5-exporter/grafana/dashboard-c5-proxy-details.json"
- src: "resources/grafana/dashboard-c5-acd-details.json"
dst: "/usr/share/doc/prometheus-c5-exporter/grafana/dashboard-c5-acd-details.json"
- src: "resources/grafana/dashboard-c5-registrar-details.json"
dst: "/usr/share/doc/prometheus-c5-exporter/grafana/dashboard-c5-registrar-details.json"
- src: "resources/grafana/dashboard-c5-bt-details.json"
dst: "/usr/share/doc/prometheus-c5-exporter/grafana/dashboard-c5-bt-details.json"
- src: "resources/grafana/dashboard-c5-bt-overview.json"
dst: "/usr/share/doc/prometheus-c5-exporter/grafana/dashboard-c5-bt-overview.json"
- src: "prometheus-c5-exporter.conf.example"
dst: "/usr/share/doc/prometheus-c5-exporter/prometheus-c5-exporter.conf.example"
# Config files to add to your package. They are about the same as
# the files keyword, except package managers treat them differently
- src: "prometheus-c5-exporter.conf.example"
dst: "/etc/prometheus-c5-exporter.conf"
type: config