-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
63 lines (63 loc) · 1.24 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
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod download
snapshot:
name_template: "0.4"
env_files:
github_token: ~/.github_token
checksum:
algorithm: sha256
release:
extra_files:
- glob: dist/*.rpm
draft: true
builds:
-
dir: .
main: exporter.go
goos:
- linux
goarch:
- amd64
hooks:
post: ./scripts/rpm_build.sh -v {{ .Version }}
env:
- CGO_ENABLED=0
- GO111MODULE=on
archives:
-
id: systemd
replacements:
amd64: x86_64
files:
- etc/systemd/*
name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}"
nfpms:
-
id: systemd
vendor: GitHub
homepage: https://github.com/MaxFedotov/orcus-exporter
maintainer: MaxFedotov <[email protected]>
description: "Orcus Prometheus Exporter"
file_name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}"
license: Apache 2.0
formats:
- deb
bindir: /usr/bin
empty_folders:
- /var/log/orcus-exporter
files:
"etc/systemd/orcus-exporter.service": "/etc/systemd/system/orcus-exporter.service"
scripts:
preinstall: "scripts/pre-install.sh"
overrides:
rpm:
replacements:
amd64: x86_64
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'