Skip to content

Commit 17ec8c2

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

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
@@ -34,15 +34,27 @@ YQ_VERSION=${YQ_VERSION:-v4.44.1}
3434
IMG="$(echo $REGISTRY_IMAGE | cut -d':' -f1)"
3535
TAG="$(echo $REGISTRY_IMAGE | cut -d':' -f2)"
3636

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

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

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

4860
# Install the devfile registry

0 commit comments

Comments
 (0)