mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #104749 from cpanato/GH-102822
build/common: check if docker buildx is available
This commit is contained in:
commit
86c6437530
@ -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