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 18ef7e1b
authored
Jul 20, 2021
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增gpuhub configmap update
1 parent
c158ef75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
update_configmap.sh
update_configmap.sh
View file @
18ef7e1
#!/bin/bash
configmap_branch
=
$1
project_name
=
$2
#项目名称,由jenkins传递 ,kpl还是gpuhub。
seetaas_deploy_workspace
=
/root/seetaas-deploy
gpuhub_deploy_workspace
=
/root/gpuhub-deploy
echo
"开始判断configmap-kpl目录是否在目标位置"
sleep 3
if
[
! -d
"/root/configmap-kpl"
]
;
then
...
...
@@ -11,9 +13,11 @@ fi
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配置文件#############"
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
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