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 4f6d5c7b
authored
Feb 02, 2021
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加文件打包以及上传oss操作
1 parent
858f9a8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
start.sh
start.sh
View file @
4f6d5c7
...
...
@@ -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"
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