2022-01-30 03:56:28 -05:00
|
|
|
---
|
2021-06-14 03:17:23 -04:00
|
|
|
before:
|
|
|
|
hooks:
|
2023-04-07 06:29:47 -04:00
|
|
|
- go mod tidy -compat=1.20
|
2021-11-28 17:00:22 -05:00
|
|
|
|
|
|
|
release:
|
|
|
|
prerelease: auto
|
|
|
|
|
2021-06-14 03:17:23 -04:00
|
|
|
builds:
|
2023-03-28 12:43:33 -04:00
|
|
|
- id: headscale
|
2021-06-16 13:24:30 -04:00
|
|
|
main: ./cmd/headscale/headscale.go
|
2021-10-21 15:18:50 -04:00
|
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
2022-02-22 11:18:25 -05:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
2023-03-28 12:43:33 -04:00
|
|
|
targets:
|
|
|
|
- darwin_amd64
|
|
|
|
- darwin_arm64
|
|
|
|
- freebsd_amd64
|
|
|
|
- linux_386
|
|
|
|
- linux_amd64
|
|
|
|
- linux_arm64
|
|
|
|
- linux_arm_5
|
|
|
|
- linux_arm_6
|
|
|
|
- linux_arm_7
|
2021-06-16 13:24:30 -04:00
|
|
|
flags:
|
|
|
|
- -mod=readonly
|
|
|
|
ldflags:
|
2021-10-03 12:06:50 -04:00
|
|
|
- -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}}
|
2022-11-04 06:26:33 -04:00
|
|
|
tags:
|
|
|
|
- ts2019
|
2021-10-15 11:00:04 -04:00
|
|
|
|
2021-06-14 03:17:23 -04:00
|
|
|
archives:
|
2021-06-16 13:24:30 -04:00
|
|
|
- id: golang-cross
|
|
|
|
builds:
|
2023-04-07 18:32:04 -04:00
|
|
|
- darwin-amd64
|
|
|
|
- darwin-arm64
|
|
|
|
- freebsd-amd64
|
|
|
|
- linux-386
|
|
|
|
- linux-amd64
|
|
|
|
- linux-arm64
|
|
|
|
- linux-arm-5
|
|
|
|
- linux-arm-6
|
|
|
|
- linux-arm-7
|
2021-06-16 13:24:30 -04:00
|
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
2021-07-12 11:04:28 -04:00
|
|
|
format: binary
|
2021-06-14 03:17:23 -04:00
|
|
|
|
2023-03-28 12:43:33 -04:00
|
|
|
nfpms:
|
|
|
|
# Configure nFPM for .deb and .rpm releases
|
|
|
|
#
|
|
|
|
# See https://nfpm.goreleaser.com/configuration/
|
|
|
|
# and https://goreleaser.com/customization/nfpm/
|
|
|
|
#
|
|
|
|
# Useful tools for debugging .debs:
|
|
|
|
# List file contents: dpkg -c dist/headscale...deb
|
|
|
|
# Package metadata: dpkg --info dist/headscale....deb
|
|
|
|
#
|
|
|
|
- builds:
|
|
|
|
- headscale
|
|
|
|
package_name: headscale
|
|
|
|
priority: optional
|
|
|
|
vendor: headscale
|
|
|
|
maintainer: Kristoffer Dalby <kristoffer@dalby.cc>
|
|
|
|
homepage: https://github.com/juanfont/headscale
|
|
|
|
license: BSD
|
|
|
|
bindir: /usr/bin
|
|
|
|
formats:
|
|
|
|
- deb
|
2023-04-19 11:06:30 -04:00
|
|
|
# - rpm
|
2023-03-28 12:43:33 -04:00
|
|
|
contents:
|
|
|
|
- src: ./config-example.yaml
|
|
|
|
dst: /etc/headscale/config.yaml
|
|
|
|
type: config|noreplace
|
|
|
|
file_info:
|
|
|
|
mode: 0644
|
|
|
|
- src: ./docs/packaging/headscale.systemd.service
|
|
|
|
dst: /etc/systemd/system/headscale.service
|
|
|
|
- dst: /var/lib/headscale
|
|
|
|
type: dir
|
|
|
|
- dst: /var/run/headscale
|
|
|
|
type: dir
|
|
|
|
scripts:
|
|
|
|
postinstall: ./docs/packaging/postinstall.sh
|
|
|
|
postremove: ./docs/packaging/postremove.sh
|
|
|
|
|
2021-06-14 03:17:23 -04:00
|
|
|
checksum:
|
2021-10-21 15:18:50 -04:00
|
|
|
name_template: "checksums.txt"
|
2021-06-14 03:17:23 -04:00
|
|
|
snapshot:
|
|
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
2021-10-21 15:18:50 -04:00
|
|
|
- "^docs:"
|
|
|
|
- "^test:"
|