Skip to content

Commit b32d654

Browse files
committed
scripts/common-envs.mk: commit suggestions after a review
1 parent 4949af0 commit b32d654

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎scripts/common-envs.mk‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ifeq ($(COZYSTACK_VERSION),)
1616
endif
1717

1818
# Get the name of the default docker buildx builder
19-
BUILDER ?= $(shell docker buildx inspect --bootstrap | head -n2 | awk '/^Name:/{print $$NF}')
19+
BUILDER ?= $(shell jq -r '.Name' ~/.docker/buildx/current)
2020
# Get platforms supported by the builder
21+
# TODO: figure out how to get runners status dynamically, in json
22+
# PLATFORM ?= $(shell jq -r '.Nodes[] | .Platforms | map(.os + "/" + .architecture) | join(",")' ~/.docker/buildx/instances/$(BUILDER))
2123
PLATFORM ?= $(shell docker buildx inspect --bootstrap $(BUILDER) | egrep '^Platforms:' | egrep -o 'linux/amd64|linux/arm64' | sort -u | xargs | sed 's/ /,/g')
24+

0 commit comments

Comments
 (0)