2021-03-07 21:16:22 +00:00
|
|
|
# This is an example .goreleaser.yml file with some sane defaults.
|
|
|
|
# Make sure to check the documentation at http://goreleaser.com
|
2022-05-08 17:15:40 +00:00
|
|
|
project_name: cacert-boardvoting
|
2024-06-08 10:49:53 +00:00
|
|
|
version: 2
|
2021-03-07 21:16:22 +00:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
2022-10-15 19:14:16 +00:00
|
|
|
- sh -c "gzip < README.md > debian/README.md.gz"
|
2021-03-07 21:16:22 +00:00
|
|
|
builds:
|
|
|
|
- env:
|
|
|
|
- CGO_ENABLED=1
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
2021-04-14 17:02:44 +00:00
|
|
|
flags:
|
|
|
|
- -buildmode=pie
|
|
|
|
- -trimpath
|
|
|
|
- -v
|
2022-05-29 13:51:53 +00:00
|
|
|
main: ./cmd/boardvoting
|
2021-03-07 21:16:22 +00:00
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|
2021-03-07 21:28:54 +00:00
|
|
|
nfpms:
|
|
|
|
-
|
|
|
|
package_name: cacert-boardvoting
|
|
|
|
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
|
|
|
|
maintainer: Jan Dittberner <jandd@cacert.org>
|
2022-10-15 19:14:16 +00:00
|
|
|
section: misc
|
2021-03-07 21:28:54 +00:00
|
|
|
formats:
|
|
|
|
- deb
|
|
|
|
dependencies:
|
|
|
|
- libsqlite3-0
|
|
|
|
- adduser
|
|
|
|
priority: optional
|
2021-04-14 17:02:44 +00:00
|
|
|
bindir: /srv/cacert-boardvoting
|
2021-03-07 21:28:54 +00:00
|
|
|
contents:
|
2022-10-15 19:14:16 +00:00
|
|
|
- src: debian/README.md.gz
|
|
|
|
dst: /usr/share/doc/cacert-boardvoting/README.md.gz
|
|
|
|
- src: debian/copyright
|
|
|
|
dst: /usr/share/doc/cacert-boardvoting/copyright
|
2021-03-07 21:28:54 +00:00
|
|
|
- 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
|
2022-10-15 19:33:55 +00:00
|
|
|
gitea_urls:
|
|
|
|
api: https://code.cacert.org/api/v1/
|
|
|
|
download: https://code.cacert.org
|