Skip to content

Commit

Permalink
update ci operator scripts to set architecture
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Dubrick <[email protected]>
  • Loading branch information
Jdubrick committed Jun 7, 2024
1 parent 03e1b9f commit ed57aad
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .ci/openshift_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,27 @@ export ODO_DISABLE_TELEMETRY=true
IMG="$(echo $REGISTRY_IMAGE | cut -d':' -f1)"
TAG="$(echo $REGISTRY_IMAGE | cut -d':' -f2)"

# Allow for yq dependency to be set based off desired architecture
DEFAULT_ARCH="amd64"

# Check if different architecture was passed for image build
# Will default to $DEFAULT_ARCH if unset
if [ ! -z "$1" ]
then
arch="$1"
else
arch="$DEFAULT_ARCH"
fi

# Create a project/namespace for running the tests in
oc new-project devfile-registry-test

# Install yq
curl -sL https://github.com/mikefarah/yq/releases/download/v4.9.5/yq_linux_amd64 -o yq && chmod +x yq
curl -sL https://github.com/mikefarah/yq/releases/download/v4.9.5/yq_linux_${arch} -o yq && chmod +x yq
YQ_PATH=$(realpath yq)

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

# Install the devfile registry
Expand Down

0 comments on commit ed57aad

Please sign in to comment.