Merge pull request #104749 from cpanato/GH-102822

build/common: check if docker buildx is available
This commit is contained in:
Kubernetes Prow Robot 2021-09-14 09:11:08 -07:00 committed by GitHub
commit 86c6437530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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