File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,27 @@ export ODO_DISABLE_TELEMETRY=true
31
31
IMG=" $( echo $REGISTRY_IMAGE | cut -d' :' -f1) "
32
32
TAG=" $( echo $REGISTRY_IMAGE | cut -d' :' -f2) "
33
33
34
+ # Allow for yq dependency to be set based off desired architecture
35
+ DEFAULT_ARCH=" amd64"
36
+
37
+ # Check if different architecture was passed for image build
38
+ # Will default to $DEFAULT_ARCH if unset
39
+ if [ ! -z " $1 " ]
40
+ then
41
+ arch=" $1 "
42
+ else
43
+ arch=" $DEFAULT_ARCH "
44
+ fi
45
+
34
46
# Create a project/namespace for running the tests in
35
47
oc new-project devfile-registry-test
36
48
37
49
# Install yq
38
- curl -sL https://github.com/mikefarah/yq/releases/download/v4.9.5/yq_linux_amd64 -o yq && chmod +x yq
50
+ curl -sL https://github.com/mikefarah/yq/releases/download/v4.9.5/yq_linux_ ${arch} -o yq && chmod +x yq
39
51
YQ_PATH=$( realpath yq)
40
52
41
53
# Download odo
42
- curl -sL https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v2.5.1/odo-linux-amd64 -o odo && chmod +x odo
54
+ curl -sL https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v2.5.1/odo-linux-${arch} -o odo && chmod +x odo
43
55
export GLOBALODOCONFIG=$( pwd) /preferences.yaml
44
56
45
57
# Install the devfile registry
You can’t perform that action at this time.
0 commit comments