From 5d41f6d91ef1f56a016cb90104729c5faa9549ab Mon Sep 17 00:00:00 2001 From: Ilya Sosnovsky Date: Mon, 5 Sep 2022 11:48:34 +0300 Subject: [PATCH] Fix multiarch build --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index a863208..951f334 100755 --- a/build.sh +++ b/build.sh @@ -6,6 +6,6 @@ cd frontend && npm install && npm run build && cd .. packr2 -CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags "-linkmode external -extldflags -static -s -w" $@ +CGO_ENABLED=1 GOOS=linux GOARCH=${GOARCH:-amd64} go build -a -tags netgo -ldflags "-linkmode external -extldflags -static -s -w" $@ packr2 clean