build/common: check if docker buildx is available

Signed-off-by: Carlos Panato <ctadeu@gmail.com>
This commit is contained in:
Carlos Panato 2021-09-03 12:49:57 +02:00
parent fcd713e5cd
commit ee04b4dd37
No known key found for this signature in database
GPG Key ID: 37CA4627A2CA778F

View File

@ -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}"