@@ -13,24 +13,20 @@ jobs:
1313 # Build the OLM image and save it as an artifact
1414 build :
1515 runs-on : ubuntu-latest
16- outputs :
17- sha : ${{ steps.vars.outputs.sha }}
1816 steps :
1917 # checkout code and setup go
2018 - uses : actions/checkout@v4
2119 - uses : actions/setup-go@v5
2220 with :
2321 go-version-file : " go.mod"
2422 # build binaries and image for e2e test (includes experimental features)
25- - name : Build controller image
26- run : make e2e-build
27- - name : Save image
28- run : docker save quay.io/operator-framework/olm:local -o olm-image.tar
29- - name : Upload Docker image as artifact
23+ - name : Build OLM Image
24+ run : make e2e-build save-image
25+ - name : Upload Artifacts
3026 uses : actions/upload-artifact@v4
3127 with :
32- name : olm-image.tar
33- path : olm-image .tar
28+ name : docker-images
29+ path : " * .tar.gz "
3430
3531 # Run e2e tests in parallel jobs
3632 # Take olm image from the previous stage
@@ -53,14 +49,17 @@ jobs:
5349 - uses : actions/setup-go@v5
5450 with :
5551 go-version-file : " go.mod"
56-
57- # load the olm image
58- - name : Load OLM Docker image
52+ - name : Download build artifacts
5953 uses : actions/download-artifact@v4
6054 with :
61- name : olm-image.tar
62- path : .
63- - run : docker load < olm-image.tar
55+ name : docker-images
56+ path : images/
57+ - name : Load Docker images
58+ run : |
59+ for image in images/*.tar.gz; do
60+ echo "Loading image $image"
61+ docker load -i $image
62+ done
6463
6564 # set e2e environment variables
6665 # Set ginkgo output and parallelism
8786 KIND_CLUSTER_NAME="kind-olmv0-${i}" \
8887 KIND_CREATE_OPTS="--kubeconfig=${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
8988 HELM_INSTALL_OPTS="--kubeconfig ${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
90- make kind-create deploy;
89+ make kind-create load-test-images deploy;
9190 done
9291
9392 # run non-flakes if matrix-id is not 'flakes'
0 commit comments