From c6516b7a8d957e53c007808ba55c7159baf8e0b2 Mon Sep 17 00:00:00 2001 From: soulteary Date: Sun, 12 Jun 2022 23:46:11 +0800 Subject: [PATCH] chore: add docker images: armv6, armv7 --- .goreleaser.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 41c9cc5..f905443 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -58,15 +58,60 @@ dockers: - "--label=org.opencontainers.image.revision={{ .FullCommit }}" - "--label=org.opencontainers.image.licenses=Apache-v2" + - image_templates: + - "soulteary/apt-proxy:linux-armv7-{{ .Tag }}" + - "soulteary/apt-proxy:linux-armv7" + dockerfile: docker/Dockerfile.gorelease + use: buildx + goos: linux + goarch: arm + goarm: "7" + build_flag_templates: + - "--pull" + - "--platform=linux/arm" + - "--label=org.opencontainers.image.title={{ .ProjectName }}" + - "--label=org.opencontainers.image.description={{ .ProjectName }}" + - "--label=org.opencontainers.image.url=https://github.com/soulteary/apt-proxy" + - "--label=org.opencontainers.image.source=https://github.com/soulteary/apt-proxy" + - "--label=org.opencontainers.image.version={{ .Version }}" + - "--label=org.opencontainers.image.created={{ .Date }}" + - "--label=org.opencontainers.image.revision={{ .FullCommit }}" + - "--label=org.opencontainers.image.licenses=Apache-v2" + + - image_templates: + - "soulteary/apt-proxy:linux-armv6-{{ .Tag }}" + - "soulteary/apt-proxy:linux-armv6" + dockerfile: docker/Dockerfile.gorelease + use: buildx + goos: linux + goarch: arm + goarm: "6" + build_flag_templates: + - "--pull" + - "--platform=linux/arm" + - "--label=org.opencontainers.image.title={{ .ProjectName }}" + - "--label=org.opencontainers.image.description={{ .ProjectName }}" + - "--label=org.opencontainers.image.url=https://github.com/soulteary/apt-proxy" + - "--label=org.opencontainers.image.source=https://github.com/soulteary/apt-proxy" + - "--label=org.opencontainers.image.version={{ .Version }}" + - "--label=org.opencontainers.image.created={{ .Date }}" + - "--label=org.opencontainers.image.revision={{ .FullCommit }}" + - "--label=org.opencontainers.image.licenses=Apache-v2" + + docker_manifests: - name_template: "soulteary/apt-proxy:{{ .Tag }}" image_templates: - "soulteary/apt-proxy:linux-amd64-{{ .Tag }}" - "soulteary/apt-proxy:linux-arm64-{{ .Tag }}" + - "soulteary/apt-proxy:linux-armv7-{{ .Tag }}" + - "soulteary/apt-proxy:linux-armv6-{{ .Tag }}" skip_push: "false" - name_template: "soulteary/apt-proxy:latest" image_templates: - "soulteary/apt-proxy:linux-amd64-{{ .Tag }}" - "soulteary/apt-proxy:linux-arm64-{{ .Tag }}" + - "soulteary/apt-proxy:linux-armv7-{{ .Tag }}" + - "soulteary/apt-proxy:linux-armv6-{{ .Tag }}" skip_push: "false"