forked from orgrim/pg_back
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
77 lines (74 loc) · 1.87 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
# .goreleaser.yml created by: goreleaser version 0.156.2
# Documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "dev-{{.Commit}}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
source:
enabled: true
nfpms:
- homepage: https://github.com/orgrim/pg_back/
maintainer: Nicolas Thauvin <[email protected]>
description: |
pg_back uses pg_dumpall to dump roles and tablespaces, pg_dump to dump
each selected database to a separate file. The custom format of pg_dump
is used by default.
license: PostgreSQL
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- src: pg_back.conf
dst: /etc/pg_back/pg_back.conf
type: "config|noreplace"
- src: contrib/systemd/[email protected]
dst: /lib/systemd/system/[email protected]
packager: deb
- src: contrib/systemd/[email protected]
dst: /lib/systemd/system/[email protected]
packager: deb
overrides:
deb:
dependencies:
- postgresql-client
rpm:
replacements:
amd64: x86_64
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
dependencies:
- postgresql
rpm:
summary: pg_back dumps databases from PostgreSQL
group: Applications/Databases
signs:
- signature: "${artifact}.asc"
args: ["-u", "[email protected]", "-o", "${signature}", "-a", "-b", "${artifact}"]
artifacts: checksum