-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
77 lines (70 loc) · 2.35 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod download
- go mod tidy
builds:
-
binary: loghamster
main: ./cmd/loghamster/main.go
env:
- CGO_ENABLED=0
ldflags:
- -s -w
goos:
- linux
goarch:
- amd64
archives:
- replacements:
# linux: Linux
# windows: Windows
# amd64: x86_64
#files:
# - README.md
# - loghamster.conf.example
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
disable: true
nfpms:
- # ID of the nfpm config, must be unique.
# Defaults to "default".
# You can change the name of the package.
# Default: `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
# name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
vendor: QuikIT
homepage: https://github.com/neotel-at/loghamster
maintainer: Roland Lammel <rl@quikit.at>
description: A log transporter with animal precission
license: GNU Lesser General Public License v3.0
formats:
- deb
# - rpm
scripts:
# preinstall: "resources/scripts/preinstall.sh"
postinstall: "resources/scripts/postinstall.sh"
# preremove: "resources/scripts/preremove.sh"
# postremove: "resources/scripts/postremove.sh"
bindir: /usr/local/bin
files:
"resources/loghamster.service": "/usr/lib/systemd/system/loghamster.service"
"resources/loghamster.initd": "/etc/init.d/loghamster"
"README.md": "/usr/share/doc/loghamster/README.md"
"resources/rsyslog.d/loghamster.conf": "/usr/share/doc/loghamster/rsyslog.d/loghamster.conf"
"resources/logrotate.d/loghamster.conf": "/usr/share/doc/loghamster/logrotate.d/loghamster"
"loghamster.conf.server.example": "/usr/share/doc/loghamster/loghamster.conf.server.example"
"loghamster.conf.client.example": "/usr/share/doc/loghamster/loghamster.conf.client.example"
# Config files to add to your package. They are about the same as
# the files keyword, except package managers treat them differently
config_files:
"loghamster.conf.server.example": "/etc/loghamster/loghamster.conf"