You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cacert-boardvoting/.goreleaser.yml

47 lines
1.1 KiB
YAML

# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- env:
- CGO_ENABLED=1
ldflags:
- -s -w -X main.version={{.Version}} -X main.build={{.Env.BUILD}}
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-boardvoting
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
maintainer: Jan Dittberner <jandd@cacert.org>
formats:
- deb
dependencies:
- libsqlite3-0
- adduser
priority: optional
bindir: /src/cacert-boardvoting
contents:
- src: config.yaml.example
dst: /usr/share/doc/cacert-boardvoting/examples/config.yaml.example
- src: cacert-boardvoting.service
dst: /lib/systemd/system/cacert-boardvoting.service