-
Notifications
You must be signed in to change notification settings - Fork 40
/
.goreleaser.yaml
40 lines (40 loc) · 1.14 KB
/
.goreleaser.yaml
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
version: 2
before:
hooks:
- make dep
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
ldflags:
- -s -w
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.Commit}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
main: ./cmd/keepalived-exporter
nfpms:
- id: keepalived-exporter
package_name: keepalived-exporter
homepage: https://github.com/mehdy/keepalived-exporter
maintainer: Mehdi Khoshnoodi <mehdy.khoshnoody@gmail.com>
description: Prometheus exporter for keepalived
license: GPL-3.0
formats:
- deb
- rpm
bindir: /usr/bin
dockers:
- image_templates:
- mehdy/keepalived-exporter:latest
- mehdy/keepalived-exporter:{{ .Tag }}
- ghcr.io/mehdy/keepalived-exporter:latest
- ghcr.io/mehdy/keepalived-exporter:{{ .Tag }}
dockerfile: deployments/release/Dockerfile
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github-native