-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(goreleaser): generate rpm and deb during releases
Leverage nfpm option of goreleaser to support rpm and deb packaging.
- Loading branch information
1 parent
881f993
commit c45f8db
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -32,8 +45,7 @@ changelog: | |
- "^test:" | ||
|
||
brews: | ||
- | ||
name: src-fingerprint | ||
- name: src-fingerprint | ||
tap: | ||
owner: gitguardian | ||
name: homebrew-tap | ||
|