Skip to content

Commit

Permalink
Add NFPM configuration for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
riton committed Sep 5, 2021
1 parent 57c0b05 commit 0793026
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,22 @@ changelog:
exclude:
- '^docs:'
- '^test:'

# Generate DEB and RPM using NFPM
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}'
homepage: https://github.com/riton/nagios-plugin-git-hosted-project-merge-requests
description: This nagios plugin helps project maintainers hosted on Gitlab, Github, etc... to keep track of their staled Merge Request / Pull Requests.
maintainer: Remi Ferrand <riton.github_at_gmail.com>
license: CeCILL-B
vendor: GoReleaser
formats:
- apk
- deb
- rpm
bindir: '/usr/lib{{ if ne .Arch "386" }}64{{ end }}/nagios/plugins'
contents:
- src: ./example/config.yaml
dst: /usr/share/{{ .ProjectName }}/config.sample.yaml
empty_folders:
- /etc/nagios-plugin-git-hosted-project-merge-requests

0 comments on commit 0793026

Please sign in to comment.