Commit 4f6d5c7b by tingweiwang

增加文件打包以及上传oss操作

1 parent 858f9a8b
Showing with 9 additions and 2 deletions
......@@ -3,8 +3,10 @@
base_package_workspace=/data/package #打包工作的项目目录
seetaas_workspace=/data/package/seetaas #打包工作目录中的子目录seetaas项目
archive_package_workspace=/data/archive #打包后压缩归档路径
date=date+%F-%M-%D-%S
date=`date +%F-%H-%M`
go_proxy_server=http://goproxy.seetatech.com
oss_path=/root/ossfs
oss_project_name=private_archive
seetaas_deploy_archive=$1
private_apt_debs=$2
......@@ -18,7 +20,7 @@ kpl_frontend_branch=$6
kpl_backend_branch=$7
kpl_stream_branch=$8
kpl_launcher_branch=$9
kpl_version=$10
sed_proxy()
{
......@@ -121,4 +123,9 @@ if [[ $private_apt_debs == "true" ]];then
else
echo "跳过收集private debs"
fi
echo "打包收集到的数据目录并移动到本机archive目录"
cd $base_package_workspace && tar -cvzf $archive_package_workspace/deploy-$kp_version-$date.tar.gz ./*
echo "将archive的压缩包上传到oss中"
scp $archive_package_workspace/deploy-$kp_version-$date.tar.gz $oss_path/$oss_project_name
echo "你的oss下载地址为https://2019-10-1.oss-cn-huhehaote.aliyuncs.com/$project_name/deploy-$kp_version-$date.tar.gz"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!