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