Skip to content

Commit

Permalink
Merge pull request #2604 from sbueringer/pr-drop-image-artifact
Browse files Browse the repository at this point in the history
🌱 e2e: Stop storing the CAPV image in artifacts
  • Loading branch information
k8s-ci-robot authored Jan 10, 2024
2 parents fc47dc0 + 039def5 commit 3559ab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export VSPHERE_SSH_AUTHORIZED_KEY="${VM_SSH_PUB_KEY}"
export VSPHERE_SSH_PRIVATE_KEY="/root/ssh/.private-key/private-key"
export E2E_CONF_FILE="${REPO_ROOT}/test/e2e/config/vsphere-ci.yaml"
export ARTIFACTS="${ARTIFACTS:-${REPO_ROOT}/_artifacts}"
export DOCKER_IMAGE_TAR="${ARTIFACTS}/tempContainers/image.tar"
export DOCKER_IMAGE_TAR="/tmp/images/image.tar"
export GC_KIND="false"

# Run the vpn client in container
Expand Down Expand Up @@ -123,14 +123,14 @@ echo "Acquired Workload Cluster Control Plane IP: $WORKLOAD_CONTROL_PLANE_ENDPOI

# save the docker image locally
make e2e-image
mkdir -p "$ARTIFACTS"/tempContainers
mkdir -p /tmp/images
docker save gcr.io/k8s-staging-cluster-api/capv-manager:e2e -o "$DOCKER_IMAGE_TAR"

# store the image on gcs
login
E2E_IMAGE_SHA=$(docker inspect --format='{{index .Id}}' gcr.io/k8s-staging-cluster-api/capv-manager:e2e)
export E2E_IMAGE_SHA
gsutil cp "$ARTIFACTS"/tempContainers/image.tar gs://capv-ci/"$E2E_IMAGE_SHA"
gsutil cp ${DOCKER_IMAGE_TAR} gs://capv-ci/"$E2E_IMAGE_SHA"

# Run e2e tests
make e2e

0 comments on commit 3559ab2

Please sign in to comment.