forked from lesovsky/pgscv
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.goreleaser.yml
81 lines (75 loc) · 1.64 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
project_name: pgscv
before:
hooks:
- make dep
builds:
- binary: pgscv
main: ./cmd
goarch:
- '386'
- amd64
- arm64
- arm
goos:
- linux
# - windows
# - freebsd
# - darwin
#ignore:
# - goarch: arm
# goos: windows
# - goarch: arm64
# goos: windows
# - goarch: arm64
# goos: freebsd
env:
- CGO_ENABLED=0
ldflags:
- -a -installsuffix cgo
- -X main.appName=pgscv -X main.gitTag={{.Tag}} -X main.gitCommit={{.Commit}} -X main.gitBranch={{.Branch}}
archives:
- builds: [pgscv]
builds_info:
group: root
owner: root
wrap_in_directory: false
files:
- LICENSE
- src: "deploy/pgscv.yaml"
strip_parent: true
info:
owner: root
group: root
mode: 0640
- src: "deploy/pgscv.service"
strip_parent: true
info:
owner: root
group: root
mode: 0644
- src: "deploy/pgscv.default"
strip_parent: true
info:
owner: root
group: root
mode: 0644
name_template: >-
{{- .Binary }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
changelog:
sort: asc
checksum:
name_template: 'checksums.txt'
nfpms:
- vendor: pgscv
homepage: https://github.com/cherts/pgscv
maintainer: Mikhail Grigorev
description: pgSCV - PostgreSQL ecosystem metrics collector.
license: BSD-3
formats: []
bindir: /usr/sbin