修改发布脚本 #9

Merged
qxa merged 1 commits from dev into master 2024-03-29 16:58:59 +08:00
2 changed files with 40 additions and 10 deletions

View File

@ -35,16 +35,18 @@ jobs:
volumes: volumes:
- /opt/.runner/nuget_packages:/root/.nuget/packages - /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: steps:
- name: 下载源码 - name: 下载源码
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: 使用缓存
uses: actions/cache@master
with:
mount: |
node_modules
- name: 编译后端 - name: 编译后端
uses: actions/aspnet@8.0 uses: actions/aspnet@8.0
with: with:
@ -84,7 +86,12 @@ jobs:
rm -rf marking.cut.service.tar.gz rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/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 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 - name: 启动生产环境106
uses: docker://appleboy/drone-ssh uses: docker://appleboy/drone-ssh
@ -101,7 +108,12 @@ jobs:
rm -rf marking.cut.service.tar.gz rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/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 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: 发送构建通知 - name: 发送构建通知
if: ${{ always() }} if: ${{ always() }}

View File

@ -22,6 +22,14 @@ jobs:
volumes: volumes:
- /opt/.runner/nuget_packages:/root/.nuget/packages - /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: steps:
- name: 下载源码 - name: 下载源码
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -75,7 +83,12 @@ jobs:
rm -rf marking.cut.service.tar.gz rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/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 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 - name: 启动生产环境106
uses: docker://appleboy/drone-ssh uses: docker://appleboy/drone-ssh
@ -92,7 +105,12 @@ jobs:
rm -rf marking.cut.service.tar.gz rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/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 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: 发送构建通知 - name: 发送构建通知
if: ${{ always() }} if: ${{ always() }}