From eed9398b61422a82a253b1e1d9905e000a10b65a Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 2 Jun 2021 18:27:15 -0700 Subject: [PATCH] build: fix k8s-tester Signed-off-by: Gyuho Lee --- hack/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hack/build.sh b/hack/build.sh index 7b96f8ccc..a6658dad7 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -52,11 +52,12 @@ done WHAT="k8s-tester" PACKAGE_NAME='github.com/aws/aws-k8s-tester/k8s-tester' -pushd ./k8s-tester +pushd ./k8s-tester/cmd/k8s-tester for arch in ${ARCHS}; do for os in ${TARGETS}; do for bin in ${WHAT}; do echo "=== Building arch=${arch}, os=${os}, target=${bin} ===" + pwd CGO_ENABLED=0 \ GOARCH=${arch} \ GOOS=${os} \ @@ -66,8 +67,8 @@ for arch in ${ARCHS}; do -X ${PACKAGE_NAME}/version.GitCommit=${GIT_COMMIT} \ -X ${PACKAGE_NAME}/version.ReleaseVersion=${RELEASE_VERSION} \ -X ${PACKAGE_NAME}/version.BuildTime=${BUILD_TIME}" \ - -o ../bin/${bin}-${RELEASE_VERSION}-${os}-${arch} \ - ./cmd/${bin} + -o ../../../bin/${bin}-${RELEASE_VERSION}-${os}-${arch} \ + . done done done