From 7aa024987755eadd02ca6e0d8d8f0736a898b213 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 15 Feb 2024 09:50:41 +0100 Subject: [PATCH] with bare Signed-off-by: Kristoffer Dalby --- .goreleaser.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 39510167a9..9a757ecc77 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -82,6 +82,10 @@ nfpms: kos: - id: ghcr repository: ghcr.io/kradalby/headscale + + # bare tells KO to only use the repository + # for tagging and naming the container. + bare: true base_image: gcr.io/distroless/base-debian12 build: headscale main: ./cmd/headscale @@ -105,6 +109,7 @@ kos: build: headscale base_image: gcr.io/distroless/base-debian12 repository: kradalby + bare: true platforms: - linux/amd64 - linux/386 @@ -121,8 +126,9 @@ kos: - id: ghcr-debug repository: ghcr.io/kradalby/headscale + bare: true base_image: "debian:12" - build: headscale + build: kradalby/headscale main: ./cmd/headscale env: - CGO_ENABLED=0 @@ -140,9 +146,10 @@ kos: - "sha-{{ .ShortCommit }}-debug" - id: dockerhub-debug - build: headscale + build: kradalby/headscale base_image: "debian:12" repository: kradalby + bare: true platforms: - linux/amd64 - linux/386