This commit is contained in:
parent
766eff2e35
commit
9d2f48049c
@ -23,7 +23,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
|
||||
commands: # 定义在Docker容器中执行的shell命令
|
||||
|
||||
- mvn clean package # 应用打包命令
|
||||
- mvn package -Dmaven.test.skip=true # 应用打包命令
|
||||
|
||||
- cd ruoyi-admin/target/
|
||||
- ls
|
||||
|
16
yudao-server/run.sh
Normal file
16
yudao-server/run.sh
Normal file
@ -0,0 +1,16 @@
|
||||
app_name='zymall'
|
||||
# 定义应用版本
|
||||
app_version='1.0.0'
|
||||
# 定义应用环境
|
||||
#profile_active='prod'
|
||||
echo '----stop container----'
|
||||
docker stop ${app_name}
|
||||
echo '----rm container----'
|
||||
docker rm ${app_name}
|
||||
#echo '----rm image----'
|
||||
#docker rmi ${group_name}/${app_name}:${app_version}
|
||||
# 打包编译docker镜像
|
||||
echo '----build image----'
|
||||
docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
|
||||
echo '----start container----'
|
||||
docker run -d -p 8083:8080 --name ${app_name} ${app_name}:${app_version}
|
Loading…
Reference in New Issue
Block a user