rebound/.goreleaser.yaml

96 lines
2.3 KiB
YAML
Raw Normal View History

2023-09-23 06:03:28 +02:00
project_name: rebound
before:
hooks:
- go mod tidy
builds:
- id: rebound
env:
- CGO_ENABLED=0
ldflags:
- -s
- -w
2023-09-24 20:21:44 +02:00
- -X "main.Version={{ .Env.GORELEASER_CURRENT_TAG }}"
2023-09-23 06:03:28 +02:00
gcflags:
- -trimpath="${PWD}"
asmflags:
- -trimpath="${PWD}"
goos:
- linux
goarch:
- amd64
- "386"
main: ./cmd/server
archives:
- id: rebound
builds: ["rebound"]
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
files:
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- id: rebound
builds:
- "rebound"
package_name: rebound
homepage: https://forge.cadoles.com/wpetit/rebound
maintainer: William Petit <wpetit@cadoles.com>
description: |-
SSH tunneling for machines behind NATs.
license: AGPL-3.0
formats:
- apk
- deb
- rpm
contents:
# Deb
- src: misc/packaging/systemd/rebound.systemd.service
dst: /usr/lib/systemd/system/rebound.service
packager: deb
- src: misc/packaging/systemd/rebound.env
dst: /etc/rebound/environ
type: config|noreplace
2023-09-23 06:03:28 +02:00
packager: deb
# RPM
- src: misc/packaging/systemd/rebound.systemd.service
dst: /usr/lib/systemd/system/rebound.service
packager: rpm
- src: misc/packaging/systemd/rebound.env
type: config|noreplace
2023-09-23 06:03:28 +02:00
dst: /etc/rebound/environ
packager: rpm
# APK
- src: misc/packaging/openrc/rebound.openrc.sh
dst: /etc/init.d/rebound
file_info:
mode: 0755
packager: apk
- src: misc/packaging/openrc/rebound.conf
type: config|noreplace
2023-09-23 06:03:28 +02:00
dst: /etc/conf.d/rebound
file_info:
mode: 0755
packager: apk
# All
- dst: /var/lib/rebound
type: dir
file_info:
mode: 0700
- dst: /var/log/rebound
type: dir
file_info:
mode: 0700
scripts:
postinstall: "misc/packaging/common/postinstall-rebound.sh"