-
Notifications
You must be signed in to change notification settings - Fork 26
/
.goreleaser.yml
340 lines (333 loc) · 9.98 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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
# ***************************************************************
#
# Copyright (C) 2024, Pelican Project, Morgridge Institute for Research
#
# 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: pelican
release:
prerelease: true
before:
hooks:
- go mod tidy
- go generate ./...
- make web-build
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- "amd64"
- "arm64"
- "ppc64le"
id: "pelican"
dir: ./cmd
binary: pelican
tags:
- forceposix
ldflags:
- -s -w -X github.com/pelicanplatform/pelican/config.commit={{.Commit}} -X github.com/pelicanplatform/pelican/config.date={{.Date}} -X github.com/pelicanplatform/pelican/config.builtBy=goreleaser -X github.com/pelicanplatform/pelican/config.version={{.Version}}
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarch: ppc64le
- goos: darwin
goarch: ppc64le
archives:
- id: pelican
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
wrap_in_directory: '{{ .ProjectName }}-{{ trimsuffix .Version "-next" }}'
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
nfpms:
- package_name: pelican
builds:
- pelican
file_name_template: "{{ .ConventionalFileName }}"
id: pelican
vendor: OSG Consortium
homepage: https://pelicanplatform.org
maintainer: Pelican Team <[email protected]>
description: Command-line copy tool for the Open Science Data Federation
license: ASL 2.0
formats:
- apk
- deb
- rpm
bindir: /usr/bin
release: 1
section: default
priority: extra
overrides:
rpm:
contents:
- src: LICENSE
dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/LICENSE.txt"
file_info:
mode: 0644
type: doc
- src: README.md
dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/README.md"
file_info:
mode: 0644
type: doc
- dst: "/etc/pelican"
type: dir
file_info:
mode: 0755
owner: root
group: root
deb:
contents:
- src: LICENSE
dst: "/usr/share/doc/{{ .PackageName }}/LICENSE.txt"
file_info:
mode: 0644
type: doc
- src: README.md
dst: "/usr/share/doc/{{ .PackageName }}/README.md"
file_info:
mode: 0644
type: doc
- dst: "/etc/pelican"
type: dir
file_info:
mode: 0755
owner: root
group: root
apk:
contents:
- src: LICENSE
dst: "/usr/share/doc/{{ .PackageName }}/LICENSE.txt"
file_info:
mode: 0644
type: doc
- src: README.md
dst: "/usr/share/doc/{{ .PackageName }}/README.md"
file_info:
mode: 0644
type: doc
- dst: "/etc/pelican"
type: dir
file_info:
mode: 0755
owner: root
group: root
# end package pelican
- package_name: pelican-osdf-compat
builds: []
file_name_template: "{{ .ConventionalFileName }}"
id: pelican-osdf-compat
vendor: OSG Consortium
homepage: https://pelicanplatform.org
maintainer: Pelican Team <[email protected]>
description: OSDF compatibility files for Pelican
license: ASL 2.0
meta: true
formats:
- apk
- deb
- rpm
# bindir: /usr/bin
release: 1
section: default
priority: extra
dependencies:
- pelican
provides:
## does not work: {{ .Version }} doesn't get substituted in this list
# - osdf-client = {{ .Version }}
# - stashcp = {{ .Version }}
# - condor-stash-plugin = {{ .Version }}
- "stashcache-client = 7"
- "osdf-client = 7"
- "stashcp = 7"
- "condor-stash-plugin = 7"
overrides:
apk:
contents:
- src: "./pelican"
dst: "/usr/bin/osdf"
type: symlink
- src: "./pelican"
dst: "/usr/bin/stashcp"
type: symlink
rpm:
contents:
- src: "./pelican"
dst: "/usr/bin/osdf"
type: symlink
- src: "./pelican"
dst: "/usr/bin/stashcp"
type: symlink
- src: "../../bin/pelican"
dst: "/usr/libexec/condor/stash_plugin"
type: symlink
- src: "client/resources/10-stash-plugin.conf"
dst: "/etc/condor/config.d/10-stash-plugin.conf"
type: config|noreplace
replaces:
- "stashcache-client < 7"
- "osdf-client < 7"
- "stashcp < 7"
- "condor-stash-plugin < 7"
## rpm specific syntax:
## also does not work: %{version} doesn't get expanded
# provides:
# - "osdf-client = %{version}"
# - "stashcp = %{version}"
# - "condor-stash-plugin = %{version}"
deb:
contents:
- src: "./pelican"
dst: "/usr/bin/osdf"
type: symlink
- src: "./pelican"
dst: "/usr/bin/stashcp"
type: symlink
- src: "../../bin/pelican"
dst: "/usr/libexec/condor/stash_plugin"
type: symlink
- src: "client/resources/10-stash-plugin.conf"
dst: "/etc/condor/config.d/10-stash-plugin.conf"
type: config|noreplace
# deb has different syntax
provides:
- "stashcache-client (= 7)"
- "osdf-client (= 7)"
- "stashcp (= 7)"
- "condor-stash-plugin (= 7)"
replaces:
- "stashcache-client (<< 7)"
- "osdf-client (<< 7)"
- "stashcp (<< 7)"
- "condor-stash-plugin (<< 7)"
# end package pelican-osdf-compet
- package_name: pelican-server
builds: []
file_name_template: "{{ .ConventionalFileName }}"
id: pelican-server
vendor: OSG Consortium
homepage: https://pelicanplatform.org
maintainer: Pelican Team <[email protected]>
description: SystemD files and configs for Pelican services
license: ASL 2.0
meta: true
formats:
- deb
- rpm
release: 1
section: default
priority: extra
# dependencies are per-package format
contents:
- src: "systemd/pelican-cache.service"
dst: "/usr/lib/systemd/system/pelican-cache.service"
- src: "systemd/pelican-origin.service"
dst: "/usr/lib/systemd/system/pelican-origin.service"
- src: "systemd/pelican-director.service"
dst: "/usr/lib/systemd/system/pelican-director.service"
- src: "systemd/pelican-registry.service"
dst: "/usr/lib/systemd/system/pelican-registry.service"
- src: "systemd/pelican-cache.yaml"
dst: "/etc/pelican/pelican-cache.yaml"
type: config
- src: "systemd/pelican-origin.yaml"
dst: "/etc/pelican/pelican-origin.yaml"
type: config
- src: "systemd/pelican-director.yaml"
dst: "/etc/pelican/pelican-director.yaml"
type: config
- src: "systemd/pelican-registry.yaml"
dst: "/etc/pelican/pelican-registry.yaml"
type: config
- src: "systemd/pelican.logrotate"
dst: "/etc/logrotate.d/pelican"
type: config|noreplace
- src: "systemd/examples/10-federation.yaml"
dst: "/etc/pelican/config.d/10-federation.yaml"
type: config|noreplace
- src: "systemd/examples/20-origin-exports.yaml"
dst: "/etc/pelican/config.d/20-origin-exports.yaml"
type: config|noreplace
- src: "systemd/examples/60-origin-multiuser.yaml"
dst: "/etc/pelican/config.d/60-origin-multiuser.yaml"
type: config|noreplace
- src: "systemd/examples/90-debugging.yaml"
dst: "/etc/pelican/config.d/90-debugging.yaml"
type: config|noreplace
- dst: "/etc/pelican/config.d"
type: "dir"
file_info:
owner: root
group: root
mode: 0755
- dst: "/usr/share/pelican/config.d"
type: "dir"
file_info:
owner: root
group: root
mode: 0755
- dst: "/var/log/pelican"
type: "dir"
file_info:
owner: root
group: root
mode: 0700
overrides:
rpm:
provides:
## {{ .Version }} substitutions do not work in this list
- "pelican-origin = 7"
- "pelican-cache = 7"
- "pelican-registry = 7"
- "pelican-director = 7"
dependencies:
- "pelican >= 7.4.0"
- "xrootd-server >= 1:5.7.0"
- "xrootd-scitokens"
- "xrootd-voms"
deb:
provides:
- "pelican-origin (= 7)"
- "pelican-cache (= 7)"
- "pelican-registry (= 7)"
- "pelican-director (= 7)"
dependencies:
- "pelican (>= 7.4.0)"
- "xrootd-server (>= 5.7.0)"
- "xrootd-scitokens-plugins"
- "xrootd-voms-plugins"
# end package pelican-server