-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
51 lines (47 loc) · 1.09 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
before:
hooks:
- go mod tidy
builds:
- main: main.go
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
nfpms:
- package_name: pg2s3
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
homepage: https://github.com/theandrew168/pg2s3
maintainer: Andrew Dailey <[email protected]>
description: Simple PostgreSQL backups to S3-compatible storage
license: MIT
formats:
- deb
bindir: /usr/bin
contents:
- src: script/pg2s3.service
dst: /lib/systemd/system/pg2s3.service
type: config
- src: script/pg2s3.conf
dst: /etc/pg2s3.conf
type: config
scripts:
postinstall: script/postinstall.sh
preremove: script/preremove.sh
postremove: script/postremove.sh
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"