forked from PelicanPlatform/pelican
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
88 lines (85 loc) · 2.13 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
project_name: pelican
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- "amd64"
- "arm64"
- "ppc64le"
id: "pelican"
dir: ./cmd
binary: pelican
tags:
- forceposix
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
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: '{{ .PackageName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
id: pelican
vendor: OSG Consortium
homepage: https://github.com/PelicanProject/pelican
maintainer: Brian Bockelman <[email protected]>
description: Command-line copy tool for the Open Science Data Federation
license: Apache 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"
- src: README.md
dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/README.md"
file_name_template: >-
{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }}
deb:
file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}_{{ .Arch }}"
contents:
- src: LICENSE
dst: "/usr/share/doc/{{ .PackageName }}/LICENSE.txt"
- src: README.md
dst: "/usr/share/doc/{{ .PackageName }}/README.md"