Commit b8857324 by tingweiwang

增加任务布尔值判断

1 parent 6371db62
Showing with 44 additions and 1 deletions
......@@ -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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!