From 61cc78e76424f632a76513bd230c88536d9ea65e Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Sun, 8 Mar 2020 00:59:20 +0800 Subject: [PATCH] fix target os/arch error --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index a102982..3d6457c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,7 +20,7 @@ EXT='' if [ ${INPUT_GOOS} == 'windows' ]; then EXT='.exe' fi -go build -o "${BINARY_NAME}${EXT}" +GOOS=${INPUT_GOOS} GOARCH=${INPUT_GOARCH} go build -o "${BINARY_NAME}${EXT}" ls -lh