Jan Dittberner
39393eb612
All checks were successful
cacert-boardvoting/pipeline/head This commit looks good
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
# This is an example .goreleaser.yml file with some sane defaults.
|
|
# Make sure to check the documentation at http://goreleaser.com
|
|
project_name: cacert-boardvoting
|
|
version: 2
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
- sh -c "gzip < README.md > debian/README.md.gz"
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=1
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
flags:
|
|
- -buildmode=pie
|
|
- -trimpath
|
|
- -v
|
|
main: ./cmd/boardvoting
|
|
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>
|
|
section: misc
|
|
formats:
|
|
- deb
|
|
dependencies:
|
|
- libsqlite3-0
|
|
- adduser
|
|
priority: optional
|
|
bindir: /srv/cacert-boardvoting
|
|
contents:
|
|
- src: debian/README.md.gz
|
|
dst: /usr/share/doc/cacert-boardvoting/README.md.gz
|
|
- src: debian/copyright
|
|
dst: /usr/share/doc/cacert-boardvoting/copyright
|
|
- 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
|
|
gitea_urls:
|
|
api: https://code.cacert.org/api/v1/
|
|
download: https://code.cacert.org
|