Skip to content

Commit

Permalink
add goreleaser configuration to
Browse files Browse the repository at this point in the history
- publish to ghcr and dockerhub
- publish debug images
  • Loading branch information
vroldanbet committed Aug 17, 2022
1 parent 331850d commit 361a945
Showing 1 changed file with 64 additions and 10 deletions.
74 changes: 64 additions & 10 deletions .goreleaser.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,88 @@ builds:
ldflags: *ldflags

dockers:
# AMD64
- image_templates:
- &amd_image "quay.io/authzed/zed:{{ .Version }}-amd64"
- &amd_image_quay "quay.io/authzed/zed:v{{ .Version }}-amd64"
- &amd_image_gh "ghcr.io/authzed/zed:v{{ .Version }}-amd64"
- &amd_image_dh "authzed/zed:v{{ .Version }}-amd64"
ids: ["linux-amd64"]
dockerfile: &dockerfile "Dockerfile.release"
goos: "linux"
goarch: "amd64"
use: "buildx"
build_flag_templates:
- "--platform=linux/amd64"
# AMD64 (debug)
- image_templates:
- &arm_image "quay.io/authzed/zed:{{ .Version }}-arm64"
- &amd_debug_image_quay "quay.io/authzed/zed:v{{ .Version }}-amd64-debug"
- &amd_debug_image_gh "ghcr.io/authzed/zed:v{{ .Version }}-amd64-debug"
- &amd_debug_image_dh "authzed/zed:v{{ .Version }}-amd64-debug"
ids: ["linux-amd64"]
dockerfile: &dockerfile "Dockerfile.release"
goos: "linux"
goarch: "amd64"
use: "buildx"
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=BASE=distroless.dev/busybox"
# ARM64
- image_templates:
- &arm_image_quay "quay.io/authzed/zed:v{{ .Version }}-arm64"
- &arm_image_gh "ghcr.io/authzed/zed:v{{ .Version }}-arm64"
- &arm_image_dh "authzed/zed:v{{ .Version }}-arm64"
ids: ["linux-arm64"]
dockerfile: *dockerfile
goos: "linux"
goarch: "arm64"
use: "buildx"
build_flag_templates:
- "--platform=linux/arm64"
# ARM64 (debug)
- image_templates:
- &arm_debug_image_quay "quay.io/authzed/zed:v{{ .Version }}-arm64-debug"
- &arm_debug_image_gh "ghcr.io/authzed/zed:v{{ .Version }}-arm64-debug"
- &arm_debug_image_dh "authzed/zed:v{{ .Version }}-arm64-debug"
ids: ["linux-arm64"]
dockerfile: *dockerfile
goos: "linux"
goarch: "arm64"
use: "buildx"
build_flag_templates:
- "--platform=linux/arm64"
- "--build-arg=BASE=distroless.dev/busybox"

docker_manifests:
- name_template: "quay.io/authzed/zed:{{ .Version }}"
image_templates:
- *amd_image
- *arm_image
# Quay
- name_template: "quay.io/authzed/zed:v{{ .Version }}"
image_templates: [*amd_image_quay, *arm_image_quay]
- name_template: "quay.io/authzed/zed:latest"
image_templates:
- *amd_image
- *arm_image

image_templates: [*amd_image_quay, *arm_image_quay]
# GitHub Registry
- name_template: "ghcr.io/authzed/zed:v{{ .Version }}"
image_templates: [*amd_image_gh, *arm_image_gh]
- name_template: "ghcr.io/authzed/zed:latest"
image_templates: [*amd_image_gh, *arm_image_gh]
# Docker Hub
- name_template: "authzed/zed:v{{ .Version }}"
image_templates: [*amd_image_dh, *arm_image_dh]
- name_template: "authzed/zed:latest"
image_templates: [*amd_image_dh, *arm_image_dh]
# Debug Images:
# Quay (debug)
- name_template: "quay.io/authzed/zed:v{{ .Version }}-debug"
image_templates: [*amd_debug_image_quay, *arm_debug_image_quay]
- name_template: "quay.io/authzed/zed:latest-debug"
image_templates: [*amd_debug_image_quay, *arm_debug_image_quay]
# GitHub Registry
- name_template: "ghcr.io/authzed/zed:v{{ .Version }}-debug"
image_templates: [*amd_debug_image_gh, *arm_debug_image_gh]
- name_template: "ghcr.io/authzed/zed:latest-debug"
image_templates: [*amd_debug_image_gh, *arm_debug_image_gh]
# Docker Hub
- name_template: "authzed/zed:v{{ .Version }}-debug"
image_templates: [*amd_debug_image_dh, *arm_debug_image_dh]
- name_template: "authzed/zed:latest-debug"
image_templates: [*amd_debug_image_dh, *arm_debug_image_dh]
release:
disable: true

0 comments on commit 361a945

Please sign in to comment.