From f92a509183fa57421ae6244308f086201b2f1f10 Mon Sep 17 00:00:00 2001 From: qxa Date: Fri, 29 Mar 2024 16:58:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/push-master.yaml | 28 +++++++++++++++++++-------- .gitea/workflows/release-version.yaml | 22 +++++++++++++++++++-- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/push-master.yaml b/.gitea/workflows/push-master.yaml index 93595ac..db7d89e 100644 --- a/.gitea/workflows/push-master.yaml +++ b/.gitea/workflows/push-master.yaml @@ -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() }} diff --git a/.gitea/workflows/release-version.yaml b/.gitea/workflows/release-version.yaml index 64db7bc..6146e40 100644 --- a/.gitea/workflows/release-version.yaml +++ b/.gitea/workflows/release-version.yaml @@ -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() }} -- 2.40.1