From 887302e8f1f5c93334b0ab6645c802e3dc6ea94d Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 28 Apr 2023 11:59:19 +0200 Subject: [PATCH] setup ko image builder for goreleaser Signed-off-by: Kristoffer Dalby --- .goreleaser.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 07efe6f7..8a1d627a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -36,6 +36,7 @@ archives: format: binary source: + rlcp: true enabled: true name_template: "{{ .ProjectName }}_{{ .Version }}" format: tar.gz @@ -63,7 +64,6 @@ nfpms: bindir: /usr/bin formats: - deb - # - rpm contents: - src: ./config-example.yaml dst: /etc/headscale/config.yaml @@ -80,6 +80,36 @@ nfpms: postinstall: ./docs/packaging/postinstall.sh postremove: ./docs/packaging/postremove.sh +kos: + - id: ghcr + build: headscale + base_image: gcr.io/distroless/base-debian11 + repository: ghcr.io/juanfont/headscale + platforms: + - linux/amd64 + - linux/386 + - linux/arm64 + - linux/arm/v7 + - linux/arm/v6 + - linux/arm/v5 + tags: + - latest + - '{{.Tag}}' + - id: dockerhub + build: headscale + base_image: gcr.io/distroless/base-debian11 + repository: headscale/headscale + platforms: + - linux/amd64 + - linux/386 + - linux/arm64 + - linux/arm/v7 + - linux/arm/v6 + - linux/arm/v5 + tags: + - latest + - '{{.Tag}}' + checksum: name_template: "checksums.txt" snapshot: