-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
212 lines (197 loc) · 5.94 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# Copyright 2025 Carver Automation Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
project_name: serviceradar
before:
hooks:
- go mod tidy
builds:
- id: agent
main: ./cmd/agent/main.go
binary: serviceradar-agent
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}}
- id: poller
main: ./cmd/poller/main.go
binary: serviceradar-poller
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}}
- id: dusk-checker
main: ./cmd/checkers/dusk/main.go
binary: serviceradar-dusk-checker
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}}
- id: serviceradar-core
main: ./cmd/core/main.go
binary: serviceradar-core
dir: .
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}}
hooks:
pre:
- ./scripts/build-core.sh {{ .Version }}
nfpms:
- id: agent
package_name: serviceradar-agent
file_name_template: "{{ .PackageName }}_{{ .Version }}"
builds:
- agent
vendor: ServiceRadar
homepage: https://github.com/carverauto/serviceradar
maintainer: Michael Freeman <[email protected]>
description: ServiceRadar Agent Component
license: MIT
formats:
- deb
dependencies:
- systemd
contents:
- src: ./packaging/agent/systemd/serviceradar-agent.service
dst: /lib/systemd/system/serviceradar-agent.service
- src: ./packaging/agent/config/agent.json
dst: /etc/serviceradar/agent.json
type: config
scripts:
postinstall: ./packaging/agent/scripts/postinstall.sh
preremove: ./packaging/agent/scripts/preremove.sh
- id: poller
package_name: serviceradar-poller
file_name_template: "{{ .PackageName }}_{{ .Version }}"
builds:
- poller
vendor: ServiceRadar
homepage: https://github.com/carverauto/serviceradar
maintainer: Michael Freeman <[email protected]>
description: ServiceRadar Poller Component
license: MIT
formats:
- deb
dependencies:
- systemd
contents:
- src: ./packaging/poller/systemd/serviceradar-poller.service
dst: /lib/systemd/system/serviceradar-poller.service
- src: ./packaging/poller/config/poller.json
dst: /etc/serviceradar/poller.json
type: config
scripts:
postinstall: ./packaging/poller/scripts/postinstall.sh
preremove: ./packaging/poller/scripts/preremove.sh
- id: core
package_name: serviceradar-core
file_name_template: "{{ .PackageName }}_{{ .Version }}"
builds:
- serviceradar-core
vendor: ServiceRadar
homepage: https://github.com/carverauto/serviceradar
maintainer: Michael Freeman <[email protected]>
description: ServiceRadar Core Component
license: MIT
formats:
- deb
dependencies:
- systemd
contents:
- src: dist/core_linux_amd64_v1/serviceradar-core
dst: /usr/local/bin/serviceradar-core
- src: ./packaging/core/systemd/serviceradar-core.service
dst: /lib/systemd/system/serviceradar-core.service
- src: ./packaging/core/config/core.json
dst: /etc/serviceradar/core.json
type: config
- src: pkg/core/api/web/dist
dst: /usr/local/share/serviceradar-core/web/dist
type: "tree"
scripts:
postinstall: ./packaging/core/scripts/postinstall.sh
preremove: ./packaging/core/scripts/preremove.sh
- id: dusk-checker
package_name: serviceradar-dusk-checker
file_name_template: "{{ .PackageName }}_{{ .Version }}"
builds:
- dusk-checker
vendor: ServiceRadar
homepage: https://github.com/carverauto/serviceradar
maintainer: Michael Freeman <[email protected]>
description: ServiceRadar Dusk Checker Component
license: MIT
formats:
- deb
dependencies:
- systemd
contents:
- src: ./packaging/dusk/config/dusk.json
dst: /etc/serviceradar/checkers/dusk.json
type: config
scripts:
postinstall: ./packaging/dusk/scripts/postinstall.sh
preremove: ./packaging/dusk/scripts/preremove.sh
release:
github:
owner: mfreeman451
name: serviceradar
draft: true
prerelease: auto
mode: replace
header: |
# ServiceRadar {{ .Version }}
Release of ServiceRadar monitoring system.
## Components
- serviceradar-dusk-checker: Agent package for monitoring Dusk nodes
- serviceradar-agent: Agent performs checks, collects information from external checkers (dusk)
- serviceradar-poller: Network poller for collecting monitoring data from Agent
- serviceradar-core: Core service with web interface and alerts
## Installation
See the [README.md](README.md) for detailed installation instructions.
### Quick Start
```bash
# On Agents:
sudo dpkg -i serviceradar-agent_{{ .Version }}.deb
# With Dusk Checker (on agent)
sudo dpkg -i serviceradar-dusk-checker_{{ .Version }}.deb
# On monitoring host (can co-locate with agent):
sudo dpkg -i serviceradar-poller_{{ .Version }}.deb
# On core host (can co-locate with poller+agent):
sudo dpkg -i serviceradar-core_{{ .Version }}.deb
```
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- 'Merge pull request'
- 'Merge branch'