From eba1650779910489d2281e29597b097a3e61f90d Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Thu, 21 Nov 2024 11:56:23 -0800 Subject: [PATCH] Fix local pull of prep images Now that single-arch images are indexes (because of attestations) provide the --platform flag to only pull the required arch image Signed-off-by: Phil Estes --- integration/common-setup.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration/common-setup.bash b/integration/common-setup.bash index 3deed8da..727efb13 100644 --- a/integration/common-setup.bash +++ b/integration/common-setup.bash @@ -11,10 +11,10 @@ function _common_setup() { function _load_test_images() { - "${RUNTIME_TOOL}" pull amd64/alpine:latest - "${RUNTIME_TOOL}" pull arm64v8/alpine:latest - "${RUNTIME_TOOL}" pull ppc64le/alpine:latest - "${RUNTIME_TOOL}" pull s390x/alpine:latest + "${RUNTIME_TOOL}" pull --platform linux/amd64 amd64/alpine:latest + "${RUNTIME_TOOL}" pull --platform linux/arm64/v8 arm64v8/alpine:latest + "${RUNTIME_TOOL}" pull --platform linux/ppc64le ppc64le/alpine:latest + "${RUNTIME_TOOL}" pull --platform linux/s390x s390x/alpine:latest "${RUNTIME_TOOL}" tag amd64/alpine:latest ${HOSTNM}/alpine:amd64 "${RUNTIME_TOOL}" tag ppc64le/alpine:latest ${HOSTNM}/alpine:ppc64le "${RUNTIME_TOOL}" tag arm64v8/alpine:latest ${HOSTNM}/alpine:arm64