forked from prometheus-community/postgres_exporter
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.goreleaser.yml
41 lines (41 loc) · 1.16 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
builds:
- main: dbms_exporter.go
binary: dbms_exporter
flags:
- -tags=postgres freetds
ldflags: -extldflags=-static -s -w -X main.Version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
goos:
- linux
goarch:
- amd64
# - 386
# - arm
# - arm64
# - ppc64
# - ppc64le
archives:
- name_template: "dbms_exporter-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
#nfpm:
# homepage: https://github.com/ncabatoff/dbms_exporter
# maintainer: [email protected]
# description: Prometheus exporter to report on Postgres/FreeTDS/ODBC DBs
# license: MIT
# formats:
# - deb
# - rpm
# bindir: /usr/bin
# files:
# "packaging/dbms_exporter.service": "/lib/systemd/system/dbms_exporter.service"
# config_files:
# "packaging/conf/all.yaml": "/etc/dbms_exporter/all.yaml"
# scripts:
# postinstall: "packaging/scripts/postinstall.sh"
# postremove: "packaging/scripts/postremove.sh"
# preremove: "packaging/scripts/preremove.sh"
release:
github:
owner: ncabatoff
name: dbms_exporter
draft: false
prerelease: true