Skip to content

Commit

Permalink
Added DEB/RPM package building to GoReleaser configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ppmathis committed Feb 24, 2018
1 parent 1846d7f commit 60c22b6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,27 @@ builds:
- amd64

main: ./check-frr
binary: check-frr
binary: nc-check-frr

- <<: *build_defaults
main: ./check-interface
binary: check-interface
binary: nc-check-interface

- <<: *build_defaults
main: ./check-load
binary: check-load
binary: nc-check-load

- <<: *build_defaults
main: ./check-memory
binary: check-memory
binary: nc-check-memory

nfpm:
vendor: Pascal Mathis
maintainer: Pascal Mathis <[email protected]>
homepage: https://www.pascalmathis.com/
description: Reliable and lightweight Nagios plugins written in Go
license: GPL-3.0
bindir: /usr/local/bin
formats:
- deb
- rpm
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
os: linux
language: go

addons:
apt:
packages:
- rpm

go:
- 1.8.x
- 1.9.x
Expand Down

0 comments on commit 60c22b6

Please sign in to comment.