mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-23 10:05:19 +00:00
3f2b238a46
* go 1.22 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * upgrade tailscale Signed-off-by: Kristoffer Dalby <kristoffer@dalby.cc> * add script for getting nix sri for go Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * update deps and only build headscale Signed-off-by: Kristoffer Dalby <kristoffer@dalby.cc> * add script to update all deps Signed-off-by: Kristoffer Dalby <kristoffer@dalby.cc> * get golines and golangci from upstream nix Signed-off-by: Kristoffer Dalby <kristoffer@dalby.cc> --------- Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> Signed-off-by: Kristoffer Dalby <kristoffer@dalby.cc>
93 lines
2.2 KiB
YAML
93 lines
2.2 KiB
YAML
---
|
|
before:
|
|
hooks:
|
|
- go mod tidy -compat=1.22
|
|
- go mod vendor
|
|
|
|
release:
|
|
prerelease: auto
|
|
|
|
builds:
|
|
- id: headscale
|
|
main: ./cmd/headscale/headscale.go
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
env:
|
|
- CGO_ENABLED=0
|
|
targets:
|
|
- darwin_amd64
|
|
- darwin_arm64
|
|
- freebsd_amd64
|
|
- linux_386
|
|
- linux_amd64
|
|
- linux_arm64
|
|
- linux_arm_5
|
|
- linux_arm_6
|
|
- linux_arm_7
|
|
flags:
|
|
- -mod=readonly
|
|
ldflags:
|
|
- -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}}
|
|
tags:
|
|
- ts2019
|
|
|
|
archives:
|
|
- id: golang-cross
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
|
|
format: binary
|
|
|
|
source:
|
|
enabled: true
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}"
|
|
format: tar.gz
|
|
files:
|
|
- "vendor/"
|
|
|
|
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
|
|
# - rpm
|
|
contents:
|
|
- src: ./config-example.yaml
|
|
dst: /etc/headscale/config.yaml
|
|
type: config|noreplace
|
|
file_info:
|
|
mode: 0644
|
|
- src: ./docs/packaging/headscale.systemd.service
|
|
dst: /usr/lib/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
|
|
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
snapshot:
|
|
name_template: "{{ .Tag }}-next"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|