From 09d62785fb0192f6ca6491d33fa69633e411260d Mon Sep 17 00:00:00 2001 From: Melvin Hillsman Date: Sat, 30 May 2026 10:45:08 -0500 Subject: [PATCH] feat(release): add multi-platform builds for Linux ARM64 and macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add cross-compiled release binaries for linux/arm64, darwin/amd64, and darwin/arm64 alongside the existing linux/amd64 target. Also fix the docker config by switching from deprecated `dockers` key to `dockers_v2` — the field names (images, tags, platforms) already matched the v2 schema. Resolves #151 Signed-off-by: Melvin Hillsman --- .goreleaser.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c11a7f3..25d666e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -10,13 +10,14 @@ before: - go generate ./... builds: - - id: linux-amd64 - env: + - env: - CGO_ENABLED=0 goos: - linux + - darwin goarch: - amd64 + - arm64 flags: - -trimpath ldflags: @@ -38,9 +39,9 @@ archives: - goos: windows formats: [zip] -dockers: +dockers_v2: - images: - - "quay.io/opdev/virtwork" + - "quay.io/opdev/virtwork" tags: - latest @@ -55,7 +56,7 @@ dockers: org.opencontainers.image.description: "CLI tool that creates VMs on OpenShift clusters with KubeVirt and runs continuous CPU, memory, database, network, and disk I/O workloads" annotations: - project: "{{ .ProjectName }}" + project: "{{ .ProjectName }}" platforms: - linux/amd64 @@ -63,9 +64,6 @@ dockers: extra_files: - entrypoint.sh - ids: - - linux-amd64 - changelog: sort: asc