From 6467539ea7ee3c7772d37fe9cfaa03a176a338c9 Mon Sep 17 00:00:00 2001 From: Evan Fiordeliso Date: Sat, 15 Apr 2023 20:12:59 -0400 Subject: [PATCH] Add builds for multi-arch docker containers --- .goreleaser.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7dd65b0..4158720 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -12,6 +12,21 @@ builds: - CGO_ENABLED=0 goos: - linux + goarch: + - amd64 + - arm64 + - arm + goarm: + - "7" + - "6" + ldflags: + - -X {{ .Env.BASE_PKG }}/version.Version={{.Version}} + - -X {{ .Env.BASE_PKG }}/version.Build={{.ShortCommit}} + - -X {{ .Env.BASE_PKG }}/version.BuildDate={{.Date}} + - -X {{ .Env.BASE_PKG }}/version.BuiltBy=goreleaser + - env: + - CGO_ENABLED=0 + goos: - windows - darwin ldflags: