diff --git a/.drone.yml b/.drone.yml index 12a4330..9842cb8 100644 --- a/.drone.yml +++ b/.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 # 更改为可执行脚本 diff --git a/yudao-server/run.sh b/yudao-server/run.sh index f500429..6618495 100644 --- a/yudao-server/run.sh +++ b/yudao-server/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} \ No newline at end of file +docker run -d -p 6127:6127 --name ${app_name} ${app_name}:${app_version} \ No newline at end of file