scripts/common-envs.mk: add --bootsrap flag to inspects

Signed-off-by: nbykov0 <166552198+nbykov0@users.noreply.github.com>
This commit is contained in:
nbykov0
2025-05-02 23:51:37 +03:00
parent 15c9c4a068
commit 951ba75d93

View File

@@ -16,6 +16,6 @@ ifeq ($(COZYSTACK_VERSION),)
endif
# Get the name of the default docker buildx builder
BUILDER ?= $(shell docker buildx inspect | head -n2 | awk '/^Name:/{print $$NF}')
BUILDER ?= $(shell docker buildx inspect --bootstrap | head -n2 | awk '/^Name:/{print $$NF}')
# Get platforms supported by the builder
PLATFORM ?= $(shell docker buildx inspect $(BUILDER) | egrep '^Platforms:' | egrep -o 'linux/amd64|linux/arm64' | sort -u | xargs | sed 's/ /,/g')
PLATFORM ?= $(shell docker buildx inspect --bootstrap $(BUILDER) | egrep '^Platforms:' | egrep -o 'linux/amd64|linux/arm64' | sort -u | xargs | sed 's/ /,/g')