зеркало из https://github.com/Azure/azurehpc.git
use new variables
This commit is contained in:
Родитель
0d75ff355c
Коммит
3552e84f95
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче