Skip to content

Commit

Permalink
feat(goreleaser): generate rpm and deb during releases
Browse files Browse the repository at this point in the history
Leverage nfpm option of goreleaser to support rpm and deb packaging.
  • Loading branch information
pierrelalanne committed Jan 3, 2022
1 parent 881f993 commit c45f8db
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,29 @@ builds:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
main: ./cmd/src-fingerprint
# Default build flags is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`.

nfpms:
- formats:
- deb
- rpm
dependencies:
- git
bindir: /usr/bin
vendor: GitGuardian
maintainer: GitGuardian <[email protected]>
replacements:
linux: Linux

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot:
Expand All @@ -32,8 +45,7 @@ changelog:
- "^test:"

brews:
-
name: src-fingerprint
- name: src-fingerprint
tap:
owner: gitguardian
name: homebrew-tap
Expand Down

0 comments on commit c45f8db

Please sign in to comment.