Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
deploy_script
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
deploy_script
Commits
40f4cd38
Commit
40f4cd38
authored
Apr 16, 2021
by
jinkaiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
脚本修改,支持java maven缓存
parent
4a4bbe39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
docker_ci_tools.sh
docker_ci_tools.sh
+13
-1
No files found.
docker_ci_tools.sh
View file @
40f4cd38
...
@@ -54,6 +54,18 @@ if [ -z "$cmd" ]; then
...
@@ -54,6 +54,18 @@ if [ -z "$cmd" ]; then
elif
[
"
$cmd
"
==
"build"
]
;
then
elif
[
"
$cmd
"
==
"build"
]
;
then
echo
"build..."
echo
"build..."
build_docker_image
build_docker_image
elif
[
"
$cmd
"
==
"build_java"
]
;
then
echo
"build java..."
# 利用maven镜像打包程序
echo
"清理compile目录"
rm
-rf
/compile/
*
&&
rm
-rf
/compile/.
*
echo
"复制文件到打包目录/compile"
cp
-rf
.
/compile
echo
"开始打包"
docker run
-i
--rm
--name
maven_build
-v
/compile:/usr/src/app
-v
/huansi/maven/repository:/usr/share/maven/ref
-w
/usr/src/app 47.110.145.204:8084/huansi/maven:3-jdk-
$JDK_VERSION
mvn clean package
||
exit
1
echo
"复制打包文件到当前目录下"
cp
-rf
/compile/target
.
build_docker_image
elif
[
"
$cmd
"
==
"push"
]
;
then
elif
[
"
$cmd
"
==
"push"
]
;
then
echo
"push..."
echo
"push..."
foramt_image_version
foramt_image_version
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment