This commit is contained in:
Xavier Pillons 2020-10-19 17:53:12 +02:00
Родитель 0d75ff355c
Коммит 3552e84f95
2 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -26,7 +26,7 @@ fi
echo "********************************************************************"
echo "* INIT CONFIG VARIABLES *"
echo "********************************************************************"
# AZHPC_UUID is set when creating the RG unique name when starting the pipeline
azhpc_variables=$(printenv | grep AZHPC_VARIABLES)
for item in $azhpc_variables; do
key=$(echo $item | cut -d '=' -f1)

Просмотреть файл

@ -19,19 +19,20 @@ steps:
echo "********************************************************************"
echo "* INIT CONFIG VARIABLES *"
echo "********************************************************************"
# AZHPC_UUID is set when creating the RG unique name when starting the pipeline
export AZHPC_VARIABLES_UUID=${AZHPC_UUID-azhpc}
azhpc_variables=$(printenv | grep AZHPC_VARIABLES)
init_variables="-v resource_group=$AZHPC_RESOURCEGROUP"
for item in $azhpc_variables; do
key=$(echo $item | cut -d '=' -f1)
value=$(echo $item | cut -d '=' -f2)
variable=${key#AZHPC_VARIABLES_}
variable=${variable,,}
init_variables+=",$variable=$value"
if [ "$init_variables" == "" ]; then
init_variables+="-v $variable=$value"
else
init_variables+=",$variable=$value"
fi
done
echo $init_variables
. install.sh
conf_dir=$(dirname $AZHPC_CONFIG)