Commit 18ef7e1b by tingweiwang

新增gpuhub configmap update

1 parent c158ef75
Showing with 6 additions and 2 deletions
#!/bin/bash #!/bin/bash
configmap_branch=$1 configmap_branch=$1
project_name=$2 #项目名称,由jenkins传递 ,kpl还是gpuhub。
seetaas_deploy_workspace=/root/seetaas-deploy seetaas_deploy_workspace=/root/seetaas-deploy
gpuhub_deploy_workspace=/root/gpuhub-deploy
echo "开始判断configmap-kpl目录是否在目标位置" echo "开始判断configmap-kpl目录是否在目标位置"
sleep 3 sleep 3
if [ ! -d "/root/configmap-kpl" ]; then if [ ! -d "/root/configmap-kpl" ]; then
...@@ -11,9 +13,11 @@ fi ...@@ -11,9 +13,11 @@ fi
echo "#################下载新版本的configmap配置模板#################" echo "#################下载新版本的configmap配置模板#################"
sleep 3 sleep 3
git clone -b $configmap_branch git@gitlab.seetatech.com:tingweiwang/configmap-kpl.git /root/configmap-kpl git clone -b $configmap_branch git@gitlab.seetatech.com:tingweiwang/configmap-kpl.git /root/configmap-kpl
if [ $2 == kpl ]; then
echo "###########执行ansible roles渲染configmap配置文件#############" echo "###########执行ansible roles渲染configmap配置文件#############"
cd $seetaas_deploy_workspace && sh script/feature/update-config.sh ksy #该脚本调用三个roles,包括修改及创建kpl autodl的configmap模板。以及批量修改Makefile cd $seetaas_deploy_workspace && sh script/feature/update-config.sh ksy #该脚本调用三个roles,包括修改及创建kpl autodl的configmap模板。以及批量修改Makefile
if [ $2 == gpuhub ]; then
cd $gpuhub_deploy_workspace && sh script/feature/update-config.sh ksy #该脚本调用三个roles,包括修改及创建kpl autodl的configmap模板。以及批量修改Makefile
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!