'init'
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
XinWei 2024-08-07 21:01:53 +08:00
parent 2f7be6ad3c
commit 35582739b2
2 changed files with 7 additions and 7 deletions

View File

@ -28,11 +28,11 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
- cd yudao-server/target/ - cd yudao-server/target/
- ls - 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: script:
- ls - ls
- scp -r /zymail/maven/build root@1.14.205.126:/zymail/build
# - cd /zymail/maven/build # 进入宿主机构建目录 - ssh root@1.14.205.126
# - scp -r . root@1.14.205.126:/zymail/build - ls
# - chmod +x run.sh # 更改为可执行脚本 # - chmod +x run.sh # 更改为可执行脚本

View File

@ -13,4 +13,4 @@ docker rm ${app_name}
echo '----build image----' echo '----build image----'
docker buildx build -f Dockerfile -t ${app_name}:${app_version} . docker buildx build -f Dockerfile -t ${app_name}:${app_version} .
echo '----start container----' 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}