Skip to content

Commit

Permalink
wip ko
Browse files Browse the repository at this point in the history
  • Loading branch information
ecordell committed Aug 16, 2023
1 parent 715aed2 commit 5b09c8c
Showing 1 changed file with 54 additions and 44 deletions.
98 changes: 54 additions & 44 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
builds:
- main: "./cmd/spicedb-operator"
- id: "spicedb-operator"
main: "./cmd/spicedb-operator"
env:
- "CGO_ENABLED=0"
goos:
Expand All @@ -14,49 +15,58 @@ builds:
ldflags:
- "-s -w"
- "-X github.com/jzelinskie/cobrautil.Version={{ .Version }}"
dockers:
# AMD64
- image_templates:
- &amd_image_quay "quay.io/authzed/spicedb-operator:v{{ .Version }}-amd64"
- &amd_image_gh "ghcr.io/authzed/spicedb-operator:v{{ .Version }}-amd64"
- &amd_image_dh "authzed/spicedb-operator:v{{ .Version }}-amd64"
dockerfile: &dockerfile "Dockerfile.release"
goos: "linux"
goarch: "amd64"
use: "buildx"
build_flag_templates:
- "--platform=linux/amd64"
extra_files:
- "validated-update-graph.yaml"
# ARM64
- image_templates:
- &arm_image_quay "quay.io/authzed/spicedb-operator:v{{ .Version }}-arm64"
- &arm_image_gh "ghcr.io/authzed/spicedb-operator:v{{ .Version }}-arm64"
- &arm_image_dh "authzed/spicedb-operator:v{{ .Version }}-arm64"
dockerfile: *dockerfile
goos: "linux"
goarch: "arm64"
use: "buildx"
build_flag_templates:
- "--platform=linux/arm64"
extra_files:
- "validated-update-graph.yaml"
docker_manifests:
# Quay
- name_template: "quay.io/authzed/spicedb-operator:v{{ .Version }}"
image_templates: [*amd_image_quay, *arm_image_quay]
- name_template: "quay.io/authzed/spicedb-operator:latest"
image_templates: [*amd_image_quay, *arm_image_quay]
# GitHub Registry
- name_template: "ghcr.io/authzed/spicedb-operator:v{{ .Version }}"
image_templates: [*amd_image_gh, *arm_image_gh]
- name_template: "ghcr.io/authzed/spicedb-operator:latest"
image_templates: [*amd_image_gh, *arm_image_gh]
# Docker Hub
- name_template: "authzed/spicedb-operator:v{{ .Version }}"
image_templates: [*amd_image_dh, *arm_image_dh]
- name_template: "authzed/spicedb-operator:latest"
image_templates: [*amd_image_dh, *arm_image_dh]
kos:
- id: "spicedb-operator-ghcr"
build: "spicedb-operator"
main: "./cmd/spicedb-operator"
base_image: "cgr.dev/chainguard/static"
repository: "ghcr.io/authzed/spicedb-operator"
platforms:
- "linux/amd64"
- "linux/arm64"
tags:
- "latest"
- "v{{ .Version }}"
creation_time: '{{.CommitTimestamp}}'
ko_data_creation_time: '{{.CommitTimestamp}}'
sbom: spdx
ldflags:
- "-s -w"
- "-X github.com/jzelinskie/cobrautil.Version={{ .Version }}"
- id: "spicedb-operator-quay"
build: "spicedb-operator"
main: "./cmd/spicedb-operator"
base_image: "cgr.dev/chainguard/static"
repository: "quay.io/authzed/spicedb-operator"
platforms:
- "linux/amd64"
- "linux/arm64"
tags:
- "latest"
- "v{{ .Version }}"
creation_time: '{{.CommitTimestamp}}'
ko_data_creation_time: '{{.CommitTimestamp}}'
sbom: spdx
ldflags:
- "-s -w"
- "-X github.com/jzelinskie/cobrautil.Version={{ .Version }}"
- id: "spicedb-operator-dockerhub"
build: "spicedb-operator"
main: "./cmd/spicedb-operator"
base_image: "cgr.dev/chainguard/static"
repository: "authzed/spicedb-operator"
platforms:
- "linux/amd64"
- "linux/arm64"
tags:
- "latest"
- "v{{ .Version }}"
creation_time: '{{.CommitTimestamp}}'
ko_data_creation_time: '{{.CommitTimestamp}}'
sbom: spdx
ldflags:
- "-s -w"
- "-X github.com/jzelinskie/cobrautil.Version={{ .Version }}"
checksum:
name_template: "checksums.txt"
snapshot:
Expand Down

0 comments on commit 5b09c8c

Please sign in to comment.