Skip to content

Commit

Permalink
hack: follow up fix from aligning image build process
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Feb 7, 2024
1 parent 2a66803 commit 7d10513
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d10513

Please sign in to comment.