diff --git a/Dockerfile.dapper b/Dockerfile.dapper index 1e1e79b..07858aa 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -17,7 +17,7 @@ RUN if [ "${ARCH}" == "amd64" ]; then \ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.54.2; \ fi -ENV GIT_COMMIT="bcf55b3084dd66ef6236ea6b350d4419c7beb213" \ +ENV GIT_COMMIT="b5d6adfbc855c3e0ef458e0aa0939c2582b8073f" \ GIT_BRANCH="ke/v0.3" \ GIT_SOURCE=${GOPATH}/src/github.com/rancher/steve \ CATTLE_DASHBOARD_UI_VERSION="v2.7.5-kube-explorer-ui-rc7" diff --git a/scripts/build b/scripts/build index 3b7f77e..21388b5 100755 --- a/scripts/build +++ b/scripts/build @@ -5,6 +5,7 @@ source $(dirname $0)/version OS_ARCH_ARG_LINUX="amd64 arm arm64" OS_ARCH_ARG_DARWIN="amd64 arm64" +OS_ARCH_ARG_WINDOWS="amd64" LD_INJECT_VALUES="-X github.com/rancher/steve/pkg/version.Version=$VERSION -X github.com/rancher/steve/pkg/version.GitCommit=$COMMIT" @@ -31,6 +32,15 @@ if [ -n "$CROSS" ]; then "$LD_INJECT_VALUES" \ -o ${OUTPUT_BIN} done + + for ARCH in ${OS_ARCH_ARG_WINDOWS}; do + OUTPUT_BIN="bin/kube-explorer-windows-$ARCH.exe" + echo "Building binary for windows/$ARCH..." + GOARCH=$ARCH GOOS=windows CGO_ENABLED=0 go build -tags embed \ + -ldflags \ + "$LD_INJECT_VALUES" \ + -o ${OUTPUT_BIN} + done else # only build one for current platform CGO_ENABLED=0 go build -tags embed \