From ee04b4dd370277dc23c63a8fd1213c055fa4cd7d Mon Sep 17 00:00:00 2001 From: Carlos Panato Date: Fri, 3 Sep 2021 12:49:57 +0200 Subject: [PATCH] build/common: check if docker buildx is available Signed-off-by: Carlos Panato --- build/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/common.sh b/build/common.sh index 8658edf5631..fc21886a436 100755 --- a/build/common.sh +++ b/build/common.sh @@ -395,6 +395,8 @@ function kube::build::build_image() { # $3 is the value to set the --pull flag for docker build; true by default # $4 is the set of --build-args for docker. function kube::build::docker_build() { + kube::util::ensure-docker-buildx + local -r image=$1 local -r context_dir=$2 local -r pull="${3:-true}"