Skip to content

Commit

Permalink
ref: combine nfpm and goreleaser properly
Browse files Browse the repository at this point in the history
  • Loading branch information
wbollock committed Sep 3, 2022
1 parent 6bf4d0f commit f80dab0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 36 deletions.
34 changes: 34 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,37 @@ changelog:
exclude:
- '^docs:'
- '^test:'
nfpms:
- id: default
formats:
- deb
- rpm
package_name: "prometheus-nagios-exporter"
section: "default"
priority: "extra"
replaces: []
dependencies: []
provides: []
recommends: []
suggests: []
conflicts: []
maintainer: "Will Bollock <[email protected]>"
description: |
A Prometheus Nagios Exporter that provides information
on the current state of a Nagios application and configuration.
homepage: "https://github.com/wbollock/nagios_exporter"
license: "MIT"
# TODO - changelog?
#changelog: "changelog.yaml"
contents:
# provided by goreleaser
- src: ./dist/nagios_exporter_linux_amd64_v1/nagios_exporter
dst: /usr/local/bin/prometheus-nagios-exporter
- src: ./nfpm/etc/config.toml
dst: /etc/prometheus-nagios-exporter/config.toml
type: config
- src: ./nfpm/systemd/prometheus-nagios-exporter.service
dst: /etc/systemd/system/prometheus-nagios-exporter.service
type: config
scripts:
postinstall: ./nfpm/scripts/postinstall.sh
36 changes: 0 additions & 36 deletions nfpm.yaml

This file was deleted.

0 comments on commit f80dab0

Please sign in to comment.