forked from ncabatoff/process-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
57 lines (56 loc) · 1.54 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
builds:
- main: cmd/process-exporter/main.go
binary: process-exporter
ldflags:
- -s -w
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
- -X github.com/prometheus/common/version.BuildUser=goreleaser
- -X github.com/prometheus/common/version.Revision={{.FullCommit}}
- -X main.version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- 386
- arm
- arm64
- ppc64
- ppc64le
goarm:
- 6
- 7
archives:
- name_template: "process-exporter-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
checksum:
name_template: checksums.txt
nfpms:
- homepage: https://github.com/ncabatoff/process-exporter
maintainer: [email protected]
description: Prometheus exporter to report on processes running
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- src: packaging/process-exporter.service
dst: /lib/systemd/system/process-exporter.service
- src: packaging/conf/all.yaml
dst: /etc/process-exporter/all.yaml
type: config
- src: packaging/default/process-exporter
dst: /etc/default/process-exporter
type: config
scripts:
postinstall: "packaging/scripts/postinstall.sh"
postremove: "packaging/scripts/postremove.sh"
preremove: "packaging/scripts/preremove.sh"
release:
github:
owner: ncabatoff
name: process-exporter
draft: false
prerelease: true