This commit is contained in:
parent
2f7be6ad3c
commit
35582739b2
12
.drone.yml
12
.drone.yml
@ -28,11 +28,11 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
- cd yudao-server/target/
|
||||
- ls
|
||||
|
||||
# - cp ruoyi-admin/target/ruoyi-admin.jar /app/build/ruoyi-admin.jar
|
||||
- cp yudao-server/target/yudao-server.jar /app/build/yudao-server.jar
|
||||
|
||||
# - cp yudao-server/Dockerfile /app/build/Dockerfile
|
||||
- cp yudao-server/Dockerfile /app/build/Dockerfile
|
||||
|
||||
# - cp yudao-server/run.sh /app/build/run.sh
|
||||
- cp yudao-server/run.sh /app/build/run.sh
|
||||
|
||||
|
||||
|
||||
@ -56,9 +56,9 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
|
||||
script:
|
||||
- ls
|
||||
|
||||
# - cd /zymail/maven/build # 进入宿主机构建目录
|
||||
# - scp -r . root@1.14.205.126:/zymail/build
|
||||
- scp -r /zymail/maven/build root@1.14.205.126:/zymail/build
|
||||
- ssh root@1.14.205.126
|
||||
- ls
|
||||
|
||||
# - chmod +x run.sh # 更改为可执行脚本
|
||||
|
||||
|
@ -13,4 +13,4 @@ docker rm ${app_name}
|
||||
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}
|
||||
docker run -d -p 6127:6127 --name ${app_name} ${app_name}:${app_version}
|
Loading…
Reference in New Issue
Block a user