Add goreleaser configuration

main
Jan Dittberner 2 years ago committed by Jan Dittberner
parent a8b2bec8f5
commit 434b544e78

1
.gitignore vendored

@ -2,3 +2,4 @@
/.idea/
/cacertocsp
/config.yaml
/dist/

@ -0,0 +1,46 @@
---
project_name: cacert-goocsp
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- id: "cli"
main: ./cmd/cacertocsp
binary: cacert-goocsp
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
archives:
- replacements:
linux: Linux
amd64: x86_64
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
dependencies:
- adduser
priority: optional
bindir: /srv/cacert-goocsp
contents:
- src: docs/config.yaml.example
dst: /usr/share/doc/cacert-goocsp/examples/config.yaml.example
- src: docs/cacert-goocsp.service
dst: /lib/systemd/system/cacert-goocsp.service
Loading…
Cancel
Save