From 44a20aefcfdd537b02ebd658bc24204ee729a83d Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 7 Jan 2022 18:21:50 +0100 Subject: [PATCH] Support arm v7 architecture --- .goreleaser.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index d744162..20fcc33 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -9,7 +9,7 @@ builds: goos: - linux goarm: - - 8 + - 7 archives: - format: binary @@ -34,12 +34,20 @@ dockers: - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-amd64" - goarch: arm64 - use_buildx: true + use: buildx build_flag_templates: - "--platform=linux/arm64/v8" image_templates: - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-arm64" +- goarch: arm + goarm: "7" + use: buildx + build_flag_templates: + - "--platform=linux/arm/v7" + image_templates: + - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-armv7" + docker_manifests: # For prereleases, updating `latest` does not make sense. # Only the image for the exact version should be pushed. @@ -47,11 +55,13 @@ docker_manifests: image_templates: - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-amd64" - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-arm64" + - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-armv7" - name_template: "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}" image_templates: - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-amd64" - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-arm64" + - "ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:v{{ .Version }}-armv7" nfpms: - vendor: ccremer