File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ source "${REPO_ROOT}/hack/parse-prow-creds.sh"
38
38
: " ${JOB_NAME:? Environment variable empty or not defined.} "
39
39
40
40
declare -a BINARIES=(" kubeadm" " kubectl" " kubelet" )
41
+ declare -a WINDOWS_BINARIES=(" kubeadm" " kubectl" " kubelet" " kube-proxy" )
41
42
declare -a IMAGES=(" kube-apiserver" " kube-controller-manager" " kube-proxy" " kube-scheduler" )
42
43
43
44
setup () {
@@ -97,7 +98,19 @@ main() {
97
98
for BINARY in " ${BINARIES[@]} " ; do
98
99
az storage blob upload --container-name " ${JOB_NAME} " --file " ${KUBE_ROOT} /_output/dockerized/bin/linux/amd64/${BINARY} " --name " ${KUBE_GIT_VERSION} /bin/linux/amd64/${BINARY} "
99
100
done
100
- fi
101
+
102
+ if [[ " ${WINDOWS:- } " == " true" ]]; then
103
+ echo " Building Kubernetes Windows binaries"
104
+
105
+ for BINARY in " ${WINDOWS_BINARIES[@]} " ; do
106
+ ${KUBE_ROOT} /build/run.sh make WHAT=cmd/${BINARY} KUBE_BUILD_PLATFORMS=windows/amd64 KUBE_VERBOSE=0
107
+ done
108
+
109
+ for BINARY in " ${WINDOWS_BINARIES[@]} " ; do
110
+ az storage blob upload --container-name " ${JOB_NAME} " --file " ${KUBE_ROOT} /_output/dockerized/bin/windows/amd64/${BINARY} .exe" --name " ${KUBE_GIT_VERSION} /bin/windows/amd64/${BINARY} .exe"
111
+ done
112
+ fi
113
+ fi
101
114
}
102
115
103
116
# can_reuse_artifacts returns true if there exists Kubernetes artifacts built from a PR that we can reuse
You can’t perform that action at this time.
0 commit comments