From cfce3bdd09455aa7ee30c6007ae79a9937f146d4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 3 May 2020 12:42:33 -0400 Subject: [PATCH] Fix arm builds, no parallel binary asset uploads to github (#379) * add -parallel 1 to ghr binary upload, will take longer but maybe address validation errors * GOARCH="arm" for arm builds --- build-github-binaries.sh | 2 +- docker/Dockerfile.arm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-github-binaries.sh b/build-github-binaries.sh index 76c51bae..d7421cd9 100755 --- a/build-github-binaries.sh +++ b/build-github-binaries.sh @@ -48,6 +48,6 @@ ls -la cd .. echo "Upload to Github" -ghr -u oliver006 -r redis_exporter --replace "${DRONE_TAG}" dist/ +ghr -parallel 1 -u oliver006 -r redis_exporter --replace "${DRONE_TAG}" dist/ echo "Done" diff --git a/docker/Dockerfile.arm b/docker/Dockerfile.arm index 7c696d43..1d7e71d4 100644 --- a/docker/Dockerfile.arm +++ b/docker/Dockerfile.arm @@ -6,7 +6,7 @@ WORKDIR /go/src/github.com/oliver006/redis_exporter/ ADD go.mod go.sum main.go exporter.go /go/src/github.com/oliver006/redis_exporter/ -ARG GOARCH="amd64" +ARG GOARCH="arm" ARG SHA1="[no-sha]" ARG TAG="[no-tag]"