GitGuardian / src-fingerprint

Extract git related information (file shas, commit shas) from your hosted source version control system
MIT License
21 stars 10 forks source link

feat(goreleaser): generate rpm and deb during releases #28

Closed pierrelalanne closed 2 years ago

pierrelalanne commented 2 years ago

In this MR, we leverage nfpm option of goreleaser to support rpm and deb packaging. Read this documentation for some more details.

Note : We also get rid of support for 32 bit architectures which did not make much sense.

Here are the archives we will finally have in a release :

src-fingerprint_0.12.0_Darwin_amd64.tar.gz
src-fingerprint_0.12.0_Darwin_arm64.tar.gz
src-fingerprint_0.12.0_Linux_amd64.deb
src-fingerprint_0.12.0_Linux_amd64.rpm
src-fingerprint_0.12.0_Linux_amd64.tar.gz
src-fingerprint_0.12.0_Linux_arm64.deb
src-fingerprint_0.12.0_Linux_arm64.rpm
src-fingerprint_0.12.0_Linux_arm64.tar.gz
src-fingerprint_0.12.0_Windows_amd64.tar.gz
src-fingerprint_0.12.0_Windows_arm64.tar.gz

Note that although the *Linux_amd64.deb could be renamed to *amd64.deb, this was not directly available in goreleaser options, that's why we kept it as is.