Skip to content

Commit

Permalink
fix ko dockerhub builds
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Feb 15, 2024
1 parent 82c64f6 commit c801c6d
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ nfpms:

kos:
- id: ghcr
repository: ghcr.io/juanfont/headscale
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
Expand All @@ -99,12 +103,13 @@ kos:
- "{{ .Major }}.{{ .Minor }}"
- "{{ .Major }}"
- "sha-{{ .ShortCommit }}"
- "{{ if not .Prerelease }}stable{{ end }}"
- "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}"

- id: dockerhub
build: headscale
base_image: gcr.io/distroless/base-debian12
repository: headscale/headscale
repository: kradalby/headscale
bare: true
platforms:
- linux/amd64
- linux/386
Expand All @@ -118,9 +123,11 @@ kos:
- "{{ .Major }}"
- "sha-{{ .ShortCommit }}"
- "{{ if not .Prerelease }}stable{{ end }}"
- "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}"

- id: ghcr-debug
repository: ghcr.io/juanfont/headscale
repository: ghcr.io/kradalby/headscale
bare: true
base_image: "debian:12"
build: headscale
main: ./cmd/headscale
Expand All @@ -138,12 +145,13 @@ kos:
- "{{ .Major }}.{{ .Minor }}-debug"
- "{{ .Major }}-debug"
- "sha-{{ .ShortCommit }}-debug"
- "{{ if not .Prerelease }}stable{{ end }}-debug"
- "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}-debug"

- id: dockerhub-debug
build: headscale
base_image: "debian:12"
repository: headscale/headscale
repository: kradalby/headscale
bare: true
platforms:
- linux/amd64
- linux/386
Expand All @@ -156,7 +164,7 @@ kos:
- "{{ .Major }}.{{ .Minor }}-debug"
- "{{ .Major }}-debug"
- "sha-{{ .ShortCommit }}-debug"
- "{{ if not .Prerelease }}stable{{ end }}-debug"
- "{{ if not .Prerelease }}stable{{ else }}unstable{{ end }}-debug"

checksum:
name_template: "checksums.txt"
Expand Down

0 comments on commit c801c6d

Please sign in to comment.