From fe3c578eb75b9361f5ac663fbe307375a55341e9 Mon Sep 17 00:00:00 2001 From: Diego Lovison Date: Wed, 18 Sep 2024 15:33:54 -0300 Subject: [PATCH] Fix return value of get_dspo_image --- .github/scripts/tests/tests.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/scripts/tests/tests.sh b/.github/scripts/tests/tests.sh index 9345947e..a23c589b 100755 --- a/.github/scripts/tests/tests.sh +++ b/.github/scripts/tests/tests.sh @@ -28,13 +28,11 @@ RESOURCES_DIR_CRD="${GIT_WORKSPACE}/.github/resources" OPENDATAHUB_NAMESPACE="opendatahub" RESOURCES_DIR_PYPI="${GIT_WORKSPACE}/.github/resources/pypiserver/base" -# Functions get_dspo_image() { if [ "$REGISTRY_ADDRESS" = "" ]; then echo "REGISTRY_ADDRESS variable not defined." && exit 1 fi local image="${REGISTRY_ADDRESS}/data-science-pipelines-operator" - echo "Using $image for DSPO image" echo $image } @@ -47,10 +45,10 @@ apply_crd() { } build_image() { + IMG=$(get_dspo_image) echo "---------------------------------" - echo "Build image" + echo "Building image: $IMG" echo "---------------------------------" - IMG=$(get_dspo_image) ( cd $GIT_WORKSPACE && make podman-build -e IMG="$IMG" ) } @@ -69,10 +67,10 @@ deploy_argo_lite() { } deploy_dspo() { + IMG=$(get_dspo_image) echo "---------------------------------" - echo "Deploy DSPO" + echo "Deploying DSPO: $IMG" echo "---------------------------------" - IMG=$(get_dspo_image) ( cd $GIT_WORKSPACE && make podman-push -e IMG="$IMG" ) ( cd $GIT_WORKSPACE && make deploy-kind -e IMG="$IMG" ) }