Skip to content

Commit

Permalink
Debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Nov 16, 2024
1 parent 6f89128 commit b82dd7b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions scripts/helm-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ function setup_oc_helm() {

function deploy_application() {
DIR=$1

echo "Deploy application in $DIR"
OS_APPLICATION=$(os_app_name $DIR)
exit_code=$?
exit_code=$?
echo "Deploy application in $DIR -> $OS_APPLICATION}"
if [[ $exit_code != '0' ]] ; then
echo "Error with os_app_name function $exit_code"
exit $exit_code
Expand Down Expand Up @@ -213,11 +214,14 @@ function deploy_applications() {
echo "Deploy the root directory only"
get_artifact_versions . $PROJECT_VERSION
deploy_application .
else
pwd
ls
for app_dir in $(echo $DEPLOY_APPLICATIONS | sed "s/,/ /g")
do
echo deploy application in $app_dir
get_artifact_versions $app_dir $PROJECT_VERSION
deploy_application $app_dir
done
fi
for app_dir in $(echo $DEPLOY_APPLICATIONS | sed "s/,/ /g")
do
echo deploy application in $app_dir
get_artifact_versions $app_dir $PROJECT_VERSION
deploy_application $app_dir
done
}

0 comments on commit b82dd7b

Please sign in to comment.