2022-01-30 09:56:28 +01:00
---
2024-09-05 14:00:19 +02:00
version : 2
2021-06-14 09:17:23 +02:00
before :
hooks :
2024-02-12 09:11:33 +01:00
- go mod tidy -compat=1.22
2023-04-19 21:50:03 +02:00
- go mod vendor
2021-11-28 23:00:22 +01:00
release :
prerelease : auto
2021-06-14 09:17:23 +02:00
builds :
2023-03-28 18:43:33 +02:00
- id : headscale
2024-02-12 14:53:07 +01:00
main : ./cmd/headscale
2021-10-21 21:18:50 +02:00
mod_timestamp : "{{ .CommitTimestamp }}"
2022-02-22 17:18:25 +01:00
env :
- CGO_ENABLED=0
2023-03-28 18:43:33 +02: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 19:24:30 +02:00
flags :
- -mod=readonly
ldflags :
2021-10-03 18:06:50 +02:00
- -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}}
2022-11-04 11:26:33 +01:00
tags :
- ts2019
2021-10-15 17:00:04 +02:00
2021-06-14 09:17:23 +02:00
archives :
2021-06-16 19:24:30 +02:00
- id : golang-cross
2023-04-20 11:33:26 +02:00
name_template : '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
2021-07-12 17:04:28 +02:00
format : binary
2021-06-14 09:17:23 +02:00
2023-04-19 21:50:03 +02:00
source :
enabled : true
name_template : "{{ .ProjectName }}_{{ .Version }}"
format : tar.gz
files :
- "vendor/"
2023-03-28 18:43:33 +02: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
contents :
- src : ./config-example.yaml
dst : /etc/headscale/config.yaml
type : config|noreplace
file_info :
mode : 0644
- src : ./docs/packaging/headscale.systemd.service
2023-04-28 23:45:55 +02:00
dst : /usr/lib/systemd/system/headscale.service
2023-03-28 18:43:33 +02:00
- dst : /var/lib/headscale
type : dir
- dst : /var/run/headscale
type : dir
scripts :
postinstall : ./docs/packaging/postinstall.sh
postremove : ./docs/packaging/postremove.sh
2024-02-12 14:53:07 +01:00
kos :
- id : ghcr
repository : ghcr.io/juanfont/headscale
2024-02-15 10:23:01 +01:00
# bare tells KO to only use the repository
# for tagging and naming the container.
bare : true
2024-02-12 14:53:07 +01:00
base_image : gcr.io/distroless/base-debian12
build : headscale
main : ./cmd/headscale
env :
- CGO_ENABLED=0
platforms :
- linux/amd64
- linux/386
- linux/arm64
- linux/arm/v7
tags :
2024-02-17 13:15:31 +01:00
- "{{ if not .Prerelease }}latest{{ end }}"
2024-02-19 10:50:52 +01:00
- "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}{{ end }}"
2024-02-17 13:15:31 +01:00
- "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}"
2024-02-12 14:53:07 +01:00
- "{{ .Tag }}"
2024-02-17 13:15:31 +01:00
- '{{ trimprefix .Tag "v" }}'
2024-02-12 14:53:07 +01:00
- "sha-{{ .ShortCommit }}"
- id : dockerhub
build : headscale
base_image : gcr.io/distroless/base-debian12
repository : headscale/headscale
2024-02-15 10:23:01 +01:00
bare : true
2024-02-12 14:53:07 +01:00
platforms :
- linux/amd64
- linux/386
- linux/arm64
- linux/arm/v7
tags :
2024-02-17 13:15:31 +01:00
- "{{ if not .Prerelease }}latest{{ end }}"
2024-02-19 10:50:52 +01:00
- "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}{{ end }}"
2024-02-17 13:15:31 +01:00
- "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}"
2024-02-12 14:53:07 +01:00
- "{{ .Tag }}"
2024-02-17 13:15:31 +01:00
- '{{ trimprefix .Tag "v" }}'
2024-02-12 14:53:07 +01:00
- "sha-{{ .ShortCommit }}"
- id : ghcr-debug
repository : ghcr.io/juanfont/headscale
2024-02-15 10:23:01 +01:00
bare : true
2024-05-19 11:17:37 +02:00
base_image : gcr.io/distroless/base-debian12:debug
2024-02-12 14:53:07 +01:00
build : headscale
main : ./cmd/headscale
env :
- CGO_ENABLED=0
platforms :
- linux/amd64
- linux/386
- linux/arm64
- linux/arm/v7
tags :
2024-02-19 14:03:31 +01:00
- "{{ if not .Prerelease }}latest-debug{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}-debug{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}-debug{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}-debug{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-debug{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}-debug{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}-debug{{ end }}"
2024-11-11 07:06:44 +01:00
- "{{ if not .Prerelease }}stable-debug{{ else }}unstable-debug{{ end }}"
2024-02-12 14:53:07 +01:00
- "{{ .Tag }}-debug"
2024-02-17 13:15:31 +01:00
- '{{ trimprefix .Tag "v" }}-debug'
2024-02-12 14:53:07 +01:00
- "sha-{{ .ShortCommit }}-debug"
- id : dockerhub-debug
build : headscale
2024-05-19 11:17:37 +02:00
base_image : gcr.io/distroless/base-debian12:debug
2024-02-12 14:53:07 +01:00
repository : headscale/headscale
2024-02-15 10:23:01 +01:00
bare : true
2024-02-12 14:53:07 +01:00
platforms :
- linux/amd64
- linux/386
- linux/arm64
- linux/arm/v7
tags :
2024-02-19 14:03:31 +01:00
- "{{ if not .Prerelease }}latest-debug{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}.{{ .Patch }}-debug{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}.{{ .Minor }}-debug{{ end }}"
- "{{ if not .Prerelease }}{{ .Major }}-debug{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-debug{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}.{{ .Minor }}-debug{{ end }}"
- "{{ if not .Prerelease }}v{{ .Major }}-debug{{ end }}"
2024-11-11 07:06:44 +01:00
- "{{ if not .Prerelease }}stable-debug{{ else }}unstable-debug{{ end }}"
2024-02-12 14:53:07 +01:00
- "{{ .Tag }}-debug"
2024-02-17 13:15:31 +01:00
- '{{ trimprefix .Tag "v" }}-debug'
2024-02-12 14:53:07 +01:00
- "sha-{{ .ShortCommit }}-debug"
2021-06-14 09:17:23 +02:00
checksum :
2021-10-21 21:18:50 +02:00
name_template : "checksums.txt"
2021-06-14 09:17:23 +02:00
snapshot :
2024-09-05 14:00:19 +02:00
version_template : "{{ .Tag }}-next"
2021-06-14 09:17:23 +02:00
changelog :
sort : asc
filters :
exclude :
2021-10-21 21:18:50 +02:00
- "^docs:"
- "^test:"