Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
deploy-project-archive
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 b8857324
authored
Jan 29, 2021
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加任务布尔值判断
1 parent
6371db62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
1 deletions
start.sh
start.sh
View file @
b885732
...
...
@@ -3,13 +3,16 @@
base_package_workspace
=
/data/package/
#打包工作的项目目录
seetaas_workspace
=
$base_workspace
/seetaas
#打包工作目录中的子目录seetaas项目
archive_package_workspace
=
/data/archive
#打包后压缩归档路径
date
=
date+%F-%M-%D-%S
date
=
date
+%F-%M-%D-%S
go_proxy_server
=
http://goproxy.seetatech.com
seetaas_deploy_archive
=
$1
private_apt_debs
=
$2
configmap_kpl_archive
=
$3
private_images_archive
=
$4
autodl_core_branch
=
$5
kpl_frontend_branch
=
$6
kpl_backend_branch
=
$7
...
...
@@ -66,3 +69,42 @@ git clone git@gitlab.seetatech.com:tingweiwang/seetaas-deploy.git
private_debs
(){
wget https://2019-10-1.oss-cn-huhehaote.aliyuncs.com/private_debs/apt-1804/debs-apt-1804.tar.gz -P
}
build_seetaas
(){
autodl_core
kpl_frontend
kpl_backend
kpl_stream
kpl_launcher
}
###################################
echo
"开始执行seetaas代码打包"
build_seetaas
echo
"判断是否收集seetaas-deploy脚本"
if
[[
$seetaas_deploy_archive
==
"true"
]]
;
then
seetaas_deploy
else
echo
"跳过seetaas-deploy任务"
echo
"判断是否收集configmap-kpl"
if
[[
$configmap_kpl_archive
==
"true"
]]
;
then
configmap_kpl_archive
else
echo
"跳过收集configmap-kpl任务"
echo
"判断是否收集private images"
if
[[
$private_images_archive
==
"true"
]]
;
then
private_img
else
echo
"跳过收集private images任务"
echo
"判断是否收集private debs"
if
[[
$private_apt_debs
==
"true"
]]
;
then
private_debs
else
echo
"跳过收集private debs"
\ No newline at end of file
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