-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
153 lines (153 loc) · 3.96 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: 2
project_name: glouton
snapshot:
# Our version is based on the date.
version_template: '{{ .Env.GLOUTON_VERSION }}'
builds:
- env:
- CGO_ENABLED=0
targets:
- linux_amd64
- linux_386
- linux_arm_6
- linux_arm64
- windows_amd64
- windows_386
- freebsd_amd64
overrides:
- goos: freebsd
goarch: amd64
goamd64: v1
tags:
# flag to disable some node_exporter module that require CGO_ENABLED=1
- noexec,nomeminfo,nozfs,nonetdev,nonetisr
archives:
- format: binary
format_overrides:
- goos: freebsd
format: tar.gz
files:
- src: "packaging/truenas/glouton_install.py"
dst: ./
strip_parent: true
- src: "packaging/truenas/cron_upgrade.sh"
dst: ./
strip_parent: true
- src: "packaging/truenas/glouton.init"
dst: ./
strip_parent: true
- src: "etc/glouton.conf"
dst: ./etc
strip_parent: true
- src: "packaging/common/05-system.conf"
dst: ./etc/conf.d/
strip_parent: true
- src: "packaging/truenas/06-distribution.conf"
dst: ./etc/conf.d/
strip_parent: true
wrap_in_directory: "glouton_{{ .Version }}"
nfpms:
- vendor: Bleemeo
homepage: https://bleemeo.com
maintainer: "Bleemeo Packaging Team <[email protected]>"
recommends:
- sudo
- ca-certificates
- net-tools
- cron
- util-linux
- iproute2
- procps-ng
description: |
Bleemeo agent
Bleemeo is a solution of Monitoring as a Service.
This package contains the agent which sends metrics to
the SaaS platform.
license: Apache 2.0
formats:
- deb
- rpm
bindir: /usr/sbin
contents:
# Files
- src: packaging/common/glouton.service
dst: /lib/systemd/system/glouton.service
- src: packaging/common/glouton-auto-upgrade.service
dst: /lib/systemd/system/glouton-auto-upgrade.service
- src: packaging/common/glouton-auto-upgrade.timer
dst: /lib/systemd/system/glouton-auto-upgrade.timer
- src: packaging/common/glouton-hook-package-modified
dst: /usr/lib/glouton/glouton-hook-package-modified
- src: packaging/common/glouton-auto-upgrade
dst: /usr/lib/glouton/glouton-auto-upgrade
- src: bin/glouton-veths
dst: /usr/lib/glouton/glouton-veths
- src: bin/glouton-netstat
dst: /usr/sbin/glouton-netstat
- src: bin/glouton-gather-facts
dst: /usr/sbin/glouton-gather-facts
- type: dir
dst: /etc/glouton/conf.d
- type: dir
dst: /var/lib/glouton
# Global config files
- src: etc/glouton.conf
dst: /etc/glouton/glouton.conf
type: config
- src: packaging/common/05-system.conf
dst: /etc/glouton/conf.d/05-system.conf
type: config
- src: packaging/common/glouton.sudoers
dst: /etc/sudoers.d/glouton
type: config
- src: packaging/common/glouton.cron.hourly
dst: /etc/cron.hourly/glouton
type: config
# Debian config files
- src: packaging/deb/glouton-06-distribution.conf
dst: /etc/glouton/conf.d/06-distribution.conf
type: config
packager: deb
- src: packaging/deb/glouton.apt.conf
dst: /etc/apt/apt.conf.d/05glouton
type: config
packager: deb
# RPM config files
- src: packaging/rpm/glouton.yum.action
dst: /etc/yum/post-actions/glouton.action
type: config
packager: rpm
- src: packaging/rpm/glouton-06-distribution.conf
dst: /etc/glouton/conf.d/06-distribution.conf
type: config
packager: rpm
- src: packaging/rpm/glouton-dnf-plugin.py
dst: /usr/lib/python3.6/site-packages/dnf-plugins/glouton.py
type: config
packager: rpm
scripts:
postinstall: "packaging/scripts/postinstall.sh"
preremove: "packaging/scripts/preremove.sh"
postremove: "packaging/scripts/postremove.sh"
overrides:
rpm:
recommends:
- sudo
- ca-certificates
- net-tools
- cron
- util-linux
- iproute2
- procps-ng
- yum-plugin-post-transaction-actions
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
# Don't try to modify Github
disable: true