-
Notifications
You must be signed in to change notification settings - Fork 58
/
.goreleaser.yml
55 lines (51 loc) · 1.55 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
project_name: prometheus-libvirt-exporter
before:
hooks:
- go mod tidy
builds:
- id: prometheus-libvirt-exporter
dir: .
main: ./prometheus-libvirt-exporter.go
binary: prometheus-libvirt-exporter
flags:
- -v
ldflags:
- -w -s
- -X {{ .ProjectName }}/meta.Version={{ .Env.EXPORTER_VERSION }}
goos:
- linux
goarch:
- amd64
dockers:
- ids:
- prometheus-libvirt-exporter
image_templates:
- github.com/zhangjianweibj/{{ .ProjectName }}:{{ .Env.EXPORTER_VERSION }}
dockerfile: ./docker/Dockerfile
skip_push: true
build_flag_templates:
- "--build-arg=BINARY_NAME={{ .ProjectName }}"
nfpms:
- id: "prometheus-libvirt-exporter"
package_name: "prometheus-libvirt-exporter"
file_name_template: prometheus-libvirt-exporter-{{ .Env.EXPORTER_VERSION }}.{{ .Arch }}
builds:
- prometheus-libvirt-exporter
replacements:
amd64: x86_64
maintainer: "zhangjianweibj"
description: |
Prometheus-libvirt-exporter service (host and vm metrics exposed for prometheus, written in Go with pluggable metric collectors)
homepage: "https://github.com/zhangjianweibj/prometheus-libvirt-exporter"
license: "MIT License"
formats:
- apk
- deb
- rpm
bindir: "/usr/bin"
priority: optional
contents:
- src: debian/prometheus-libvirt-exporter.service
dst: /etc/systemd/system/prometheus-libvirt-exporter.service
- src: debian/prometheus-libvirt-exporter.upstart
dst: /etc/init/prometheus-libvirt-exporter.conf