修改发布脚本
部署到开发环境 / 编译发布 (push) Successful in 3m42s Details

This commit is contained in:
qxa 2024-03-29 16:58:37 +08:00
parent b07c778d78
commit f92a509183
2 changed files with 40 additions and 10 deletions

View File

@ -35,16 +35,18 @@ jobs:
volumes:
- /opt/.runner/nuget_packages:/root/.nuget/packages
env:
run_cmd: |
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30000"
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30001"
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30002"
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30003"
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30004"
steps:
- name: 下载源码
uses: actions/checkout@v3
- name: 使用缓存
uses: actions/cache@master
with:
mount: |
node_modules
- name: 编译后端
uses: actions/aspnet@8.0
with:
@ -84,7 +86,12 @@ jobs:
rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz
tar -zxvf marking.cut.service.tar.gz
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
# curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
echo "${{ env.run_cmd }}"
echo "${{ env.run_cmd }}"> publish/run.cmd
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/run.cmd&count=2"
- name: 启动生产环境106
uses: docker://appleboy/drone-ssh
@ -101,7 +108,12 @@ jobs:
rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz
tar -zxvf marking.cut.service.tar.gz
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
# curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
echo "${{ env.run_cmd }}"
echo "${{ env.run_cmd }}"> publish/run.cmd
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/run.cmd&count=2"
- name: 发送构建通知
if: ${{ always() }}

View File

@ -22,6 +22,14 @@ jobs:
volumes:
- /opt/.runner/nuget_packages:/root/.nuget/packages
env:
run_cmd: |
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30000"
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30001"
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30002"
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30003"
dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30004"
steps:
- name: 下载源码
uses: actions/checkout@v3
@ -75,7 +83,12 @@ jobs:
rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz
tar -zxvf marking.cut.service.tar.gz
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
# curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
echo "${{ env.run_cmd }}"
echo "${{ env.run_cmd }}"> publish/run.cmd
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/run.cmd&count=2"
- name: 启动生产环境106
uses: docker://appleboy/drone-ssh
@ -92,7 +105,12 @@ jobs:
rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz
tar -zxvf marking.cut.service.tar.gz
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
# curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
echo "${{ env.run_cmd }}"
echo "${{ env.run_cmd }}"> publish/run.cmd
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/run.cmd&count=2"
- name: 发送构建通知
if: ${{ always() }}