Unverified Commit b7120d27 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] simplify docker info parsing in QEMU builds (#4592)

parent e347db8a
...@@ -162,7 +162,6 @@ jobs: ...@@ -162,7 +162,6 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install --no-install-recommends -y \ sudo apt-get install --no-install-recommends -y \
binfmt-support \ binfmt-support \
jq \
qemu \ qemu \
qemu-user \ qemu-user \
qemu-user-static qemu-user-static
...@@ -193,10 +192,7 @@ jobs: ...@@ -193,10 +192,7 @@ jobs:
EOF EOF
IMAGE_URI="quay.io/pypa/manylinux2014_${ARCH}" IMAGE_URI="quay.io/pypa/manylinux2014_${ARCH}"
docker pull "${IMAGE_URI}" || exit -1 docker pull "${IMAGE_URI}" || exit -1
PLATFORM=$( PLATFORM=$(docker inspect --format='{{.Os}}/{{.Architecture}}' "${IMAGE_URI}") || exit -1
docker image inspect "${IMAGE_URI}" \
| jq -r '.[0] | "\(.Os)/\(.Architecture)"'
) || exit -1
echo "detected image platform: ${PLATFORM}" echo "detected image platform: ${PLATFORM}"
docker run \ docker run \
--platform "${PLATFORM}" \ --platform "${PLATFORM}" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment