Skip to content

Commit

Permalink
improve push-build
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed May 14, 2021
1 parent c2af3b4 commit 0a1d35d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hack/release/build/push-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ make build
# path to kubernetes sources
KUBEROOT="${KUBEROOT:-${GOPATH}/src/k8s.io/kubernetes}"

# ensure we have qemu setup (de-duped logic with setting up buildx for multi-arch)
"${REPO_ROOT}/hack/build/init-buildx.sh"

# kubernetes build option(s)
GOFLAGS="${GOFLAGS:-}"
if [ -z "${GOFLAGS}" ]; then
Expand All @@ -50,7 +53,7 @@ IMAGE="kindest/node:${kube_version}"
images=()
for arch in "${__arches__[@]}"; do
image="kindest/node-${arch}:${kube_version}"
"${REPO_ROOT}/bin/kind" build node-image --image="${image}" --kube-root="${KUBEROOT}" --arch="${arch}"
"${REPO_ROOT}/bin/kind" build node-image --image="${image}" --arch="${arch}" "${KUBEROOT}"
images+=("${image}")
done

Expand Down

0 comments on commit 0a1d35d

Please sign in to comment.