Compare commits

..

2 Commits

Author SHA1 Message Date
Kristoffer Dalby
88af29d5f5 derp
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-02-03 16:55:35 +01:00
Kristoffer Dalby
9cedc2942b verbose and test
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-02-03 16:34:13 +01:00
3 changed files with 21 additions and 15 deletions

View File

@@ -20,6 +20,6 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main - uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run goreleaser - name: Run goreleaser
run: nix develop --command -- goreleaser release --clean run: nix develop --command -- goreleaser release --clean --verbose
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -9,20 +9,20 @@ release:
builds: builds:
- id: headscale - id: headscale
main: ./cmd/headscale/headscale.go main: ./cmd/headscale
mod_timestamp: "{{ .CommitTimestamp }}" mod_timestamp: "{{ .CommitTimestamp }}"
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
targets: targets:
- darwin_amd64 # - darwin_amd64
- darwin_arm64 # - darwin_arm64
- freebsd_amd64 # - freebsd_amd64
- linux_386 # - linux_386
- linux_amd64 - linux_amd64
- linux_arm64 # - linux_arm64
- linux_arm_5 # - linux_arm_5
- linux_arm_6 # - linux_arm_6
- linux_arm_7 # - linux_arm_7
flags: flags:
- -mod=readonly - -mod=readonly
ldflags: ldflags:
@@ -82,20 +82,25 @@ nfpms:
kos: kos:
- id: ghcr - id: ghcr
build: headscale build: headscale
main: ./cmd/headscale
base_image: gcr.io/distroless/base-debian11 base_image: gcr.io/distroless/base-debian11
repository: ghcr.io/juanfont/headscale repository: ghcr.io/juanfont/headscale
env:
- CGO_ENABLED=0
platforms: platforms:
- linux/amd64 - linux/amd64
- linux/386 # - linux/386
- linux/arm64 # - linux/arm64
- linux/arm/v7 # - linux/arm/v7
- linux/arm/v6 # - linux/arm/v6
- linux/arm/v5 # - linux/arm/v5
tags: tags:
- latest - latest
- '{{.Tag}}' - '{{.Tag}}'
- '{{ .Major }}.{{ .Minor }}' - '{{ .Major }}.{{ .Minor }}'
- '{{ .Major }}' - '{{ .Major }}'
- '{{ if not .Prerelease }}stable{{ end }}'
# - id: dockerhub # - id: dockerhub
# build: headscale # build: headscale
# base_image: gcr.io/distroless/base-debian11 # base_image: gcr.io/distroless/base-debian11

View File

@@ -95,6 +95,7 @@
gotestsum gotestsum
gotests gotests
ksh ksh
ko
# 'dot' is needed for pprof graphs # 'dot' is needed for pprof graphs
# go tool pprof -http=: <source> # go tool pprof -http=: <source>