From 8eaa306576475350f370c0aa5a486f1c4a8b38ee Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 30 May 2024 14:19:31 +1000 Subject: [PATCH] generate architectures: ubi architectures cannot retreived with bashbrew For the moment hard code it, but using docker manifest inspect is almost there if something more automated is required. --- .architectures-lib | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.architectures-lib b/.architectures-lib index 174982d..fd25a5b 100644 --- a/.architectures-lib +++ b/.architectures-lib @@ -20,6 +20,10 @@ _generateParentRepoToArches() { | sort -u \ | xargs bashbrew cat --format '[{{ .RepoName }}:{{ .TagName }}]="{{ join " " .TagEntry.Architectures }}"' ) )" + # could do, but returns arm64 rather than arm64v8 + #readarray -t ubiarch < <(docker manifest inspect redhat/ubi9-minimal | jq '.manifests[].platform.architecture') + local ubiarch=(amd64 arm64v8 s390x ppc64le) + parentRepoToArches[redhat/ubi9-minimal]=${ubiarch[@]//\"/} } _generateParentRepoToArches 'mariadb'