Skip to content

Commit

Permalink
generate architectures: ubi architectures cannot retreived with bashbrew
Browse files Browse the repository at this point in the history
For the moment hard code it, but using docker manifest inspect is almost
there if something more automated is required.
  • Loading branch information
grooverdan committed May 30, 2024
1 parent 132b45b commit 8eaa306
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .architectures-lib
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 8eaa306

Please sign in to comment.