Skip to content

Commit

Permalink
Merge pull request #64 from ccremer/armv7
Browse files Browse the repository at this point in the history
Support arm v7 architecture
  • Loading branch information
ccremer authored Jan 7, 2022
2 parents 8d01b08 + 44a20ae commit 5044e42
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ builds:
goos:
- linux
goarm:
- 8
- 7

archives:
- format: binary
Expand All @@ -34,24 +34,34 @@ 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.
- name_template: "{{ if not .Prerelease }}ghcr.io/{{ .Env.IMAGE_REPOSITORY }}:latest{{ end }}"
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
Expand Down

0 comments on commit 5044e42

Please sign in to comment.