@@ -13,24 +13,22 @@ 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 : |
25
+ make e2e-build
26
+ docker save quay.io/operator-framework/olm:local | gzip > olm-image.tar.gz
27
+ - name : Upload Artifacts
30
28
uses : actions/upload-artifact@v4
31
29
with :
32
- name : olm-image.tar
33
- path : olm-image .tar
30
+ name : docker-images
31
+ path : " * .tar.gz "
34
32
35
33
# Run e2e tests in parallel jobs
36
34
# Take olm image from the previous stage
@@ -54,13 +52,18 @@ jobs:
54
52
with :
55
53
go-version-file : " go.mod"
56
54
57
- # load the olm image
58
- - name : Load OLM Docker image
55
+ # load images into kind
56
+ - name : Download build artifacts
59
57
uses : actions/download-artifact@v4
60
58
with :
61
- name : olm-image.tar
62
- path : .
63
- - run : docker load < olm-image.tar
59
+ name : docker-images
60
+ path : images/
61
+ - name : Load Docker images
62
+ run : |
63
+ for image in images/*.tar.gz; do
64
+ echo "Loading image $image"
65
+ docker load -i $image
66
+ done
64
67
65
68
# set e2e environment variables
66
69
# Set ginkgo output and parallelism
87
90
KIND_CLUSTER_NAME="kind-olmv0-${i}" \
88
91
KIND_CREATE_OPTS="--kubeconfig=${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
89
92
HELM_INSTALL_OPTS="--kubeconfig ${E2E_KUBECONFIG_ROOT}/kubeconfig-${i}" \
90
- make kind-create deploy;
93
+ make kind-create load-test-images deploy;
91
94
done
92
95
93
96
# run non-flakes if matrix-id is not 'flakes'
0 commit comments