Commit 441c3035 by tingweiwang

Update update_configmap.sh

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