mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
scripts/common-envs.mk: commit suggestions after a review
Signed-off-by: nbykov0 <166552198+nbykov0@users.noreply.github.com>
This commit is contained in:
@@ -16,6 +16,9 @@ ifeq ($(COZYSTACK_VERSION),)
|
||||
endif
|
||||
|
||||
# Get the name of the default docker buildx builder
|
||||
BUILDER ?= $(shell docker buildx inspect --bootstrap | head -n2 | awk '/^Name:/{print $$NF}')
|
||||
BUILDER ?= $(shell jq -r '.Name' ~/.docker/buildx/current)
|
||||
# Get platforms supported by the builder
|
||||
# TODO: figure out how to get runners status dynamically, in json
|
||||
# PLATFORM ?= $(shell jq -r '.Nodes[] | .Platforms | map(.os + "/" + .architecture) | join(",")' ~/.docker/buildx/instances/$(BUILDER))
|
||||
PLATFORM ?= $(shell docker buildx inspect --bootstrap $(BUILDER) | egrep '^Platforms:' | egrep -o 'linux/amd64|linux/arm64' | sort -u | xargs | sed 's/ /,/g')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user