From 3d37abe8ac35fbeb423b2895103d9274713f95ae Mon Sep 17 00:00:00 2001 From: Trugamr Date: Wed, 22 Jan 2025 00:42:04 +0530 Subject: [PATCH] feat: add armv7 support --- .goreleaser.yaml | 26 ++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0aeabcb..e3d07cb 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -12,6 +12,13 @@ builds: - linux - windows - darwin + goarch: + - amd64 + - arm64 + - arm + - "386" + goarm: + - "7" ldflags: - -s -w - -X github.com/trugamr/wol/cmd.version={{.Version}} @@ -63,16 +70,35 @@ dockers: - "--label=org.opencontainers.image.created={{ .Date }}" - "--label=org.opencontainers.image.revision={{ .FullCommit }}" - "--label=org.opencontainers.image.licenses=MIT" + - image_templates: + - "ghcr.io/trugamr/wol:{{ .Version }}-armv7" + - "ghcr.io/trugamr/wol:latest-armv7" + dockerfile: docker/Dockerfile.template + use: buildx + goarch: arm + goarm: 7 + build_flag_templates: + - "--platform=linux/arm/v7" + - "--label=org.opencontainers.image.title={{ .ProjectName }}" + - "--label=org.opencontainers.image.description=A Wake-On-LAN tool that works via CLI and web interface" + - "--label=org.opencontainers.image.url=/~https://github.com/trugamr/wol" + - "--label=org.opencontainers.image.source=/~https://github.com/trugamr/wol" + - "--label=org.opencontainers.image.version={{ .Version }}" + - "--label=org.opencontainers.image.created={{ .Date }}" + - "--label=org.opencontainers.image.revision={{ .FullCommit }}" + - "--label=org.opencontainers.image.licenses=MIT" docker_manifests: - name_template: ghcr.io/trugamr/wol:{{ .Version }} image_templates: - ghcr.io/trugamr/wol:{{ .Version }}-amd64 - ghcr.io/trugamr/wol:{{ .Version }}-arm64 + - ghcr.io/trugamr/wol:{{ .Version }}-armv7 - name_template: ghcr.io/trugamr/wol:latest image_templates: - ghcr.io/trugamr/wol:latest-amd64 - ghcr.io/trugamr/wol:latest-arm64 + - ghcr.io/trugamr/wol:latest-armv7 changelog: sort: asc diff --git a/README.md b/README.md index ce98d33..de085fe 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Download the latest release for your platform from the Available for: -- Linux (x86_64, arm64) +- Linux (x86_64, arm64, armv7) - macOS (x86_64, arm64) - Windows (x86_64)