From 7da595a0ba45450126f9223d29b3f00c41ec9963 Mon Sep 17 00:00:00 2001 From: Christian Schlotter Date: Wed, 7 Feb 2024 14:45:14 +0100 Subject: [PATCH] hack: follow up fix from aligning image build process --- hack/e2e.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hack/e2e.sh b/hack/e2e.sh index d5e5215db4..e529db004e 100755 --- a/hack/e2e.sh +++ b/hack/e2e.sh @@ -91,16 +91,18 @@ wait_for_ipam_reachable make envsubst +ARCH="$(go env GOARCH)" + # Only build and upload the image if we run tests which require it to save some $. if [[ -z "${GINKGO_FOCUS+x}" ]]; then # Save the docker image locally make e2e-images mkdir -p /tmp/images - docker save gcr.io/k8s-staging-capi-vsphere/cluster-api-vsphere-controller:dev -o "$DOCKER_IMAGE_TAR" + docker save "gcr.io/k8s-staging-capi-vsphere/cluster-api-vsphere-controller-${ARCH}:dev" -o "$DOCKER_IMAGE_TAR" # Store the image on gcs login - E2E_IMAGE_SHA=$(docker inspect --format='{{index .Id}}' gcr.io/k8s-staging-capi-vsphere/cluster-api-vsphere-controller:dev) + E2E_IMAGE_SHA=$(docker inspect --format='{{index .Id}}' "gcr.io/k8s-staging-capi-vsphere/cluster-api-vsphere-controller-${ARCH}:dev") export E2E_IMAGE_SHA gsutil cp ${DOCKER_IMAGE_TAR} gs://capv-ci/"$E2E_IMAGE_SHA" fi