-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yml
More file actions
61 lines (60 loc) · 1.73 KB
/
.goreleaser.yml
File metadata and controls
61 lines (60 loc) · 1.73 KB
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
version: 2
before:
hooks:
- go mod tidy
builds:
- id: rsync-proxy
binary: rsync-proxy
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
flags:
- -trimpath
ldflags:
- -s -w -X github.com/ustclug/rsync-proxy/pkg/info.Version={{.Version}} -X github.com/ustclug/rsync-proxy/pkg/info.BuildDate={{.Date}} -X github.com/ustclug/rsync-proxy/pkg/info.GitCommit={{.Commit}}
archives:
- formats: binary
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
use: github-native
nfpms:
- id: default
package_name: rsync-proxy
homepage: https://github.com/ustclug/rsync-proxy
maintainer: "USTC LUG <lug@ustc.edu.cn>"
description: |-
A load balancer for rsync
formats:
- deb
umask: 0o022
dependencies:
- "rsync"
section: admin
priority: extra
provides:
- rsync-proxy
scripts:
postinstall: assets/postinst.sh
preremove: assets/prerm.sh
postremove: assets/postrm.sh
contents:
- src: ./assets/config.example.toml
dst: /etc/rsync-proxy/config.example.toml
- src: ./assets/rsync-proxy.service
dst: /lib/systemd/system/
- src: ./assets/fail2ban/filter.d/rsync-proxy-nonexist.conf
dst: /etc/fail2ban/filter.d/
- src: ./assets/fail2ban/filter.d/rsync-proxy-connection.conf
dst: /etc/fail2ban/filter.d/
- src: ./assets/logrotate.conf
dst: /etc/logrotate.d/rsync-proxy
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj