forked from yotamloe/bindplane-op
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
245 lines (233 loc) · 6.05 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
before:
hooks:
- make ci
- make ui-build
builds:
- id: bindplane
main: ./cmd/bindplane
env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
ignore:
- goos: windows
goarch: arm
binary: 'bindplane'
ldflags:
- -X github.com/observiq/bindplane-op/internal/version.gitTag=v{{ .Version }}
- id: bindplanectl
main: ./cmd/bindplanectl
env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
ignore:
- goos: windows
goarch: arm
binary: 'bindplanectl'
ldflags:
- -X github.com/observiq/bindplane-op/internal/version.gitTag=v{{ .Version }}
archives:
- format: zip
# bindplane-v1.0.0-linux-amd64
name_template: 'bindplane-v{{ .Version }}-{{ .Os }}-{{ .Arch }}'
nfpms:
- id: bindplanectl
package_name: bindplanectl
builds:
- bindplanectl
vendor: observIQ, Inc
homepage: https://github.com/observIQ/bindplane-op
maintainer: observIQ, Inc
description: Next generation agent management platform
license: Apache 2.0
formats:
- rpm
- deb
- apk
bindir: /usr/local/bin
- id: bindplane
package_name: bindplane
builds:
- bindplane
vendor: observIQ, Inc
homepage: https://github.com/observIQ/bindplane-op
maintainer: observIQ, Inc
description: Next generation agent management platform
license: Apache 2.0
formats:
- rpm
- deb
bindir: /usr/local/bin
contents:
- dst: /var/lib/bindplane
type: dir
file_info:
owner: bindplane
group: bindplane
mode: 0750
- dst: /var/lib/bindplane/storage
type: dir
file_info:
owner: bindplane
group: bindplane
mode: 0750
- dst: /var/lib/bindplane/downloads
type: dir
file_info:
owner: bindplane
group: bindplane
mode: 0750
- dst: /var/log/bindplane
type: dir
file_info:
owner: bindplane
group: bindplane
mode: 0750
- src: scripts/systemd/bindplane.service
dst: /usr/lib/systemd/system/bindplane.service
type: "config"
file_info:
owner: root
group: root
mode: 0640
- dst: /etc/bindplane
type: dir
file_info:
owner: bindplane
group: bindplane
mode: 0750
- src: scripts/package/bindplane.example.yaml
dst: /etc/bindplane/config.yaml
type: "config|noreplace"
file_info:
owner: bindplane
group: bindplane
mode: 0640
scripts:
preinstall: "./scripts/package/preinstall.sh"
postinstall: ./scripts/package/postinstall.sh
dockers:
- goos: linux
goarch: amd64
ids:
- bindplane
image_templates:
- "observiq/bindplane-amd64:latest"
- "observiq/bindplane-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "observiq/bindplane-amd64:{{ .Major }}.{{ .Minor }}"
- "observiq/bindplane-amd64:{{ .Major }}"
# ShortCommit: git rev-parse --short HEAD
- "observiq/bindplane-amd64:{{ .ShortCommit }}"
dockerfile: ./Dockerfile
use: buildx
build_flag_templates:
- "--label=created={{.Date}}"
- "--label=title={{.ProjectName}}"
- "--label=revision={{.FullCommit}}"
- "--label=version={{.Version}}"
- "--platform=linux/amd64"
- goos: linux
goarch: arm64
ids:
- bindplane
image_templates:
- "observiq/bindplane-arm64:latest"
- "observiq/bindplane-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "observiq/bindplane-arm64:{{ .Major }}.{{ .Minor }}"
- "observiq/bindplane-arm64:{{ .Major }}"
# ShortCommit: git rev-parse --short HEAD
- "observiq/bindplane-arm64:{{ .ShortCommit }}"
dockerfile: ./Dockerfile
use: buildx
build_flag_templates:
- "--label=created={{.Date}}"
- "--label=title={{.ProjectName}}"
- "--label=revision={{.FullCommit}}"
- "--label=version={{.Version}}"
- "--platform=linux/arm64"
docker_manifests:
- name_template: "observiq/bindplane:latest"
image_templates:
- "observiq/bindplane-amd64:latest"
- "observiq/bindplane-arm64:latest"
skip_push: false
- name_template: "observiq/bindplane:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
image_templates:
- "observiq/bindplane-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "observiq/bindplane-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
skip_push: false
- name_template: "observiq/bindplane:{{ .Major }}.{{ .Minor }}"
image_templates:
- "observiq/bindplane-amd64:{{ .Major }}.{{ .Minor }}"
- "observiq/bindplane-arm64:{{ .Major }}.{{ .Minor }}"
skip_push: false
- name_template: "observiq/bindplane:{{ .Major }}"
image_templates:
- "observiq/bindplane-amd64:{{ .Major }}"
- "observiq/bindplane-arm64:{{ .Major }}"
skip_push: false
# ShortCommit: git rev-parse --short HEAD
- name_template: "observiq/bindplane:{{ .ShortCommit }}"
image_templates:
- "observiq/bindplane-amd64:{{ .ShortCommit }}"
- "observiq/bindplane-arm64:{{ .ShortCommit }}"
checksum:
name_template: '{{ .ProjectName }}-v{{ .Version }}-SHA256SUMS'
algorithm: sha256
brews:
- name: bindplane
tap:
owner: observIQ
name: homebrew-bindplane-op
branch: main
folder: Formula
url_template: https://github.com/observIQ/bindplane-op/releases/download/{{ .Tag }}/{{ .ArtifactName }}
commit_author:
name: bindplane
email: [email protected]
homepage: "https://github.com/observIQ/bindplane-op"
license: "Apache 2.0"
release:
# brew will fail if the release is a "draft"
draft: false
prerelease: "true"
extra_files:
- glob: scripts/install-linux.sh
- glob: scripts/install-macos.sh
changelog:
skip: false
use: github
sort: asc
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug Fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: 'Dependencies'
regexp: '^deps\(deps.*?\):\s.*$'
order: 30
- title: Other
order: 999
announce:
slack:
enabled: true
message_template: 'BindPlane OP {{.Tag}} has been released: https://github.com/observIQ/bindplane-op/releases.'
channel: '#iris'
username: 'Goreleaser'