goocsp/.goreleaser.yml
Jan Dittberner f6089bac79 Run service as separate user
- create user cacert-goocsp in postinst script
- use CAP_NET_BIND_SERVICE in systemd unit to allow binding to
  priviledged ports
- change config file path to /etc/goocsp/config.yaml
2022-10-11 19:39:03 +02:00

83 lines
2 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: changelog.md
dst: /usr/share/doc/cacert-goocsp/changelog.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
scripts:
postinstall: ./debian/postinst
gitea_urls:
api: https://code.cacert.org/api/v1/
download: https://code.cacert.org