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 @@ -34,15 +34,27 @@ YQ_VERSION=${YQ_VERSION:-v4.44.1}
34
34
IMG=" $( echo $REGISTRY_IMAGE | cut -d' :' -f1) "
35
35
TAG=" $( echo $REGISTRY_IMAGE | cut -d' :' -f2) "
36
36
37
+ # Allow for yq dependency to be set based off desired architecture
38
+ DEFAULT_ARCH=" amd64"
39
+
40
+ # Check if different architecture was passed for image build
41
+ # Will default to $DEFAULT_ARCH if unset
42
+ if [ ! -z " $1 " ]
43
+ then
44
+ arch=" $1 "
45
+ else
46
+ arch=" $DEFAULT_ARCH "
47
+ fi
48
+
37
49
# Create a project/namespace for running the tests in
38
50
oc new-project devfile-registry-test
39
51
40
52
# Install yq
41
- curl -sL https://github.com/mikefarah/yq/releases/download/${YQ_VERSION} /yq_linux_amd64 -o yq && chmod +x yq
53
+ curl -sL https://github.com/mikefarah/yq/releases/download/${YQ_VERSION} /yq_linux_ ${arch} -o yq && chmod +x yq
42
54
YQ_PATH=$( realpath yq)
43
55
44
56
# Download odo
45
- 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
57
+ 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
46
58
export GLOBALODOCONFIG=$( pwd) /preferences.yaml
47
59
48
60
# Install the devfile registry
You can’t perform that action at this time.
0 commit comments