http-server-status/.goreleaser.yml
kekskurse fa4a4a6678
All checks were successful
continuous-integration/drone/push Build is passing
Remove postremove!
2021-11-29 06:51:39 +01:00

58 lines
No EOL
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
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
#- windows
#- darwin
goarch:
- amd64
ldflags:
- -X main.version={{ .Version }}
archives:
- replacements:
darwin: Darwin
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^dev:'
gitea_urls:
api: https://git.keks.cloud/api/v1/
download: https://git.keks.cloud
# set to true if you use a self-signed certificate
skip_tls_verify: false
nfpms:
- id: "http-server-status"
package_name: "http-server-status"
vendor: kekskurse
homepage: https://git.keks.cloud/kekskurse/http-server-status
maintainer: hello@kekskurse.de
description: Stauts Page for Server
license: Apache 2.0
formats:
- deb
contents:
- src: init/http-server-status.service
dst: /etc/systemd/system/http-server-status.service
- src: config.yml
dst: /etc/http-server-status/config.yml.sample
scripts:
postinstall: "scripts/postinstall.sh"
preinstall: "scripts/preinstall.sh"
#postremove: "scripts/postremove.sh"