Skip to content

Commit

Permalink
build: fix k8s-tester
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Jun 3, 2021
1 parent be539f0 commit eed9398
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand All @@ -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
Expand Down

0 comments on commit eed9398

Please sign in to comment.