-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yml
69 lines (54 loc) · 1.26 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
before:
hooks:
- go mod download
project_name: mymy
builds:
- env:
- CGO_ENABLED=1
main: ./cmd/mymy/main.go
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.buildDate={{.Date}}
goarch:
- amd64
goos:
- linux
archives:
- files:
- LICENSE
- README.md
- config/mymy.conf.yml
checksum:
name_template: 'checksums.txt'
# Algorithm to be used.
# Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384.
# Default is sha256.
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}"
changelog:
skip: true
nfpms:
- id: default
package_name: mymy
maintainer: Pavel Parshin <[email protected]>
homepage: https://github.com/city-mobil/go-mymy
description: MySQL - MySQL replicator
license: MIT
formats:
- deb
- rpm
dependencies: ~
recommends:
- mysql-client
suggests: ~
conflicts: ~
bindir: /usr/local/bin
epoch: 1
release: 1
scripts:
postinstall: "scripts/postinstall.sh"
preremove: "scripts/preremove.sh"
files:
"scripts/etc/systemd/**": "/etc/systemd/system"
config_files:
"config/mymy.conf.yml": "/etc/mymy/conf.yml"