Skip to content

Commit

Permalink
Merge pull request #55 from Myst3rion09/armv7-builds
Browse files Browse the repository at this point in the history
Add armv7 builds
  • Loading branch information
ccremer authored Jan 22, 2024
2 parents 813ddc1 + 69a5fb3 commit 17a1508
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ builds:
- CGO_ENABLED=0 # this is needed otherwise the Docker image build is faulty
goarch:
- amd64
- arm
- arm64
goos:
- linux
- windows
goarm:
- 8
- 7

archives:
- format: binary
Expand Down Expand Up @@ -53,6 +54,14 @@ dockers:
image_templates:
- "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-arm64"

- goarch: arm
goarm: 7
use: buildx
build_flag_templates:
- "--platform=linux/arm/v7"
image_templates:
- "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-armv7"

docker_manifests:
## ghcr.io
# For prereleases, updating `latest` does not make sense.
Expand All @@ -61,11 +70,13 @@ docker_manifests:
image_templates:
- "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-amd64"
- "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-arm64"
- "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-armv7"

- name_template: "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}"
image_templates:
- "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-amd64"
- "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-arm64"
- "{{ .Env.CONTAINER_REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-armv7"

release:
prerelease: auto

0 comments on commit 17a1508

Please sign in to comment.