96 lines
2.3 KiB
YAML
96 lines
2.3 KiB
YAML
project_name: rebound
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
builds:
|
|
- id: rebound
|
|
env:
|
|
- CGO_ENABLED=0
|
|
ldflags:
|
|
- -s
|
|
- -w
|
|
- -X "main.Version={{ .Env.GORELEASER_CURRENT_TAG }}"
|
|
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
|
|
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
|
|
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
|
|
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"
|