goocsp/.goreleaser.yml

79 lines
1.8 KiB
YAML

---
project_name: cacert-goocsp
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- id: linux-amd64
main: ./cmd/cacertocsp
binary: cacert-goocsp
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- id: linux-arm64
main: ./cmd/cacertocsp
binary: cacert-goocsp
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/cacertocsp
binary: cacert-goocsp
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-gosigner
builds:
- linux-amd64
- linux-arm64
- linux-armhf
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
-
package_name: cacert-goocsp
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
maintainer: Jan Dittberner <jandd@cacert.org>
formats:
- deb
priority: optional
bindir: /usr/bin
contents:
- src: README.md
dst: /usr/share/doc/cacert-goocsp/README.md
- src: docs/config-example-crl.yaml
dst: /usr/share/doc/cacert-goocsp/examples/config-example-crl.yaml
- src: docs/config-example-openssl-index.yaml
dst: /usr/share/doc/cacert-goocsp/examples/config-example-openssl-index.yaml
- src: docs/cacert-goocsp.service
dst: /lib/systemd/system/cacert-goocsp.service
gitea_urls:
api: https://code.cacert.org/api/v1/
download: https://code.cacert.org