Skip to content

Commit ed57aad

Browse files
committed
update ci operator scripts to set architecture
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
1 parent 03e1b9f commit ed57aad

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.ci/openshift_integration.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,27 @@ export ODO_DISABLE_TELEMETRY=true
3131
IMG="$(echo $REGISTRY_IMAGE | cut -d':' -f1)"
3232
TAG="$(echo $REGISTRY_IMAGE | cut -d':' -f2)"
3333

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+
3446
# Create a project/namespace for running the tests in
3547
oc new-project devfile-registry-test
3648

3749
# 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
3951
YQ_PATH=$(realpath yq)
4052

4153
# 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
4355
export GLOBALODOCONFIG=$(pwd)/preferences.yaml
4456

4557
# Install the devfile registry

0 commit comments

Comments
 (0)