mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
build: specify buildx builder name everywhere
Fixes scenarios where there are other builders, too.
This commit is contained in:
parent
21b624b494
commit
a31fa3ac12
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -69,7 +69,7 @@ IMAGE_ALL_PLATFORMS ?= linux/amd64,linux/arm64,linux/arm/v7
|
|||
ensure-buildx:
|
||||
./hack/init-buildx.sh
|
||||
|
||||
IMAGE_BUILDX_CMD ?= DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --platform=${IMAGE_ALL_PLATFORMS} --progress=auto --pull
|
||||
IMAGE_BUILDX_CMD ?= DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --builder=nfd-builder --platform=${IMAGE_ALL_PLATFORMS} --progress=auto --pull
|
||||
|
||||
IMAGE_BUILD_ARGS = --build-arg VERSION=$(VERSION) \
|
||||
--build-arg HOSTMOUNT_PREFIX=$(CONTAINER_HOSTMOUNT_PREFIX) \
|
||||
|
|
|
@ -19,7 +19,7 @@ export DOCKER_CLI_EXPERIMENTAL=enabled
|
|||
|
||||
# We can skip setup if the current builder already has multi-arch
|
||||
# AND if it isn't the docker driver, which doesn't work
|
||||
current_builder="$(docker buildx inspect)"
|
||||
current_builder="$(docker buildx inspect nfd-builder || true)"
|
||||
# linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
|
||||
if ! grep -q "^Driver: docker$" <<<"${current_builder}" && \
|
||||
grep -q "linux/amd64" <<<"${current_builder}" && \
|
||||
|
|
Loading…
Reference in a new issue