Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
auto-update-configmap
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 441c3035
authored
Jan 05, 2022
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update update_configmap.sh
1 parent
4d0ec236
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
update_configmap.sh
update_configmap.sh
View file @
441c303
#!/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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment