-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yml
More file actions
62 lines (61 loc) · 1.67 KB
/
.goreleaser.yml
File metadata and controls
62 lines (61 loc) · 1.67 KB
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
project_name: srl-prometheus-exporter
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}}-{{.ShortCommit}}
goos:
- linux
goarch:
- amd64
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Version }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- id: srl-prometheus-exporter-nfpms
file_name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
vendor: Nokia
homepage: https://github.com/karimra/srl-prometheus-exporter
maintainer: Karim Radhouani <karim.radhouani@nokia.com>
description: A Prometheus exporter for Nokia SR Linux
formats:
- rpm
- deb
license: "BSD 2"
bindir: /usr/local/bin/
contents:
- src: ./yang/prometheus-exporter.yang
dst: /opt/prometheus-exporter/yang/prometheus-exporter.yang
- src: ./scripts/postinstall.sh
dst: /opt/prometheus-exporter/scripts/postinstall.sh
- src: ./scripts/postremove.sh
dst: /opt/prometheus-exporter/scripts/postremove.sh
- src: ./yml/prometheus-exporter.yml
dst: /etc/opt/srlinux/appmgr/prometheus-exporter.yml
- src: ./metrics.yaml
dst: /opt/prometheus-exporter/metrics.yaml
scripts:
postinstall: "scripts/postinstall.sh"
postremove: "scripts/postremove.sh"
overrides:
rpm:
scripts: