Add goreleaser configuration
This commit is contained in:
parent
e63fcab430
commit
be7bbc8101
1 changed files with 63 additions and 0 deletions
63
.goreleaser.yaml
Normal file
63
.goreleaser.yaml
Normal file
|
@ -0,0 +1,63 @@
|
|||
# Make sure to check the documentation at https://goreleaser.com
|
||||
project_name: cacert-gosignerclient
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
builds:
|
||||
- id: linux-amd64
|
||||
main: ./cmd/signerclient
|
||||
binary: cacert-signerclient
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
env:
|
||||
- CC=x86_64-linux-gnu-gcc
|
||||
- CXX=x86_64-linux-gnu-g++
|
||||
- id: linux-arm64
|
||||
main: ./cmd/signerclient
|
||||
binary: cacert-gosigner
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- arm64
|
||||
goarm:
|
||||
- "9"
|
||||
env:
|
||||
- CC=aarch64-linux-gnu-gcc
|
||||
- CXX=aarch64-linux-gnu-g++
|
||||
- PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/pkgconfig
|
||||
- id: linux-armhf
|
||||
main: ./cmd/signerclient
|
||||
binary: cacert-gosigner
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- arm
|
||||
goarm:
|
||||
- "7"
|
||||
env:
|
||||
- CC=arm-linux-gnueabihf-gcc
|
||||
- CXX=arm-linux-gnueabihf-g++
|
||||
- PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf/pkgconfig
|
||||
archives:
|
||||
- id: cacert-gosignerclient
|
||||
builds:
|
||||
- linux-amd64
|
||||
- linux-arm64
|
||||
- linux-armhf
|
||||
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
||||
format: tar.gz
|
||||
wrap_in_directory: "true"
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
snapshot:
|
||||
name_template: "{{ incpatch .Version }}-next"
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
- '^test:'
|
Loading…
Reference in a new issue