@@ -13,24 +13,20 @@ jobs:
13
13
# Build the OLM image and save it as an artifact
14
14
build :
15
15
runs-on : ubuntu-latest
16
- outputs :
17
- sha : ${{ steps.vars.outputs.sha }}
18
16
steps :
19
17
# checkout code and setup go
20
18
- uses : actions/checkout@v4
21
19
- uses : actions/setup-go@v5
22
20
with :
23
21
go-version-file : " go.mod"
24
22
# 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
30
26
uses : actions/upload-artifact@v4
31
27
with :
32
- name : olm-image.tar
33
- path : olm-image .tar
28
+ name : docker-images
29
+ path : " * .tar.gz "
34
30
35
31
# Run e2e tests in parallel jobs
36
32
# Take olm image from the previous stage
@@ -53,14 +49,17 @@ jobs:
53
49
- uses : actions/setup-go@v5
54
50
with :
55
51
go-version-file : " go.mod"
56
-
57
- # load the olm image
58
- - name : Load OLM Docker image
52
+ - name : Download build artifacts
59
53
uses : actions/download-artifact@v4
60
54
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
64
63
65
64
# set e2e environment variables
66
65
# Set ginkgo output and parallelism
87
86
KIND_CLUSTER_NAME="kind-olmv0-${i}" \
88
87
KIND_CREATE_OPTS="--kubeconfig=${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
89
88
HELM_INSTALL_OPTS="--kubeconfig ${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
90
- make kind-create deploy;
89
+ make kind-create load-test-images deploy;
91
90
done
92
91
93
92
# run non-flakes if matrix-id is not 'flakes'
0 commit comments