mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
build/common: check if docker buildx is available
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
This commit is contained in:
parent
fcd713e5cd
commit
ee04b4dd37
@ -395,6 +395,8 @@ function kube::build::build_image() {
|
|||||||
# $3 is the value to set the --pull flag for docker build; true by default
|
# $3 is the value to set the --pull flag for docker build; true by default
|
||||||
# $4 is the set of --build-args for docker.
|
# $4 is the set of --build-args for docker.
|
||||||
function kube::build::docker_build() {
|
function kube::build::docker_build() {
|
||||||
|
kube::util::ensure-docker-buildx
|
||||||
|
|
||||||
local -r image=$1
|
local -r image=$1
|
||||||
local -r context_dir=$2
|
local -r context_dir=$2
|
||||||
local -r pull="${3:-true}"
|
local -r pull="${3:-true}"
|
||||||
|
Loading…
Reference in New Issue
Block a user