forked from ddrilling/AsbCloudServer
fix devops
This commit is contained in:
parent
22c8cf176a
commit
2e4d3edd89
@ -19,7 +19,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Add gitea as nuget source
|
- name: Add gitea as nuget source
|
||||||
run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text http://test.digitaldrilling.ru:8080/api/packages/DDrilling/nuget/index.json
|
run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text http://test.digitaldrilling.ru:8080/api/packages/DDrilling/nuget/index.json
|
||||||
- run: dotnet test AsbCloudWebApi.Tests
|
- run: dotnet test AsbCloudInfrastructure.Tests
|
||||||
- run: dotnet publish AsbCloudWebApi --os linux --sc true -o ./build
|
- run: dotnet publish AsbCloudWebApi --os linux --sc true -o ./build
|
||||||
- name: Deploy to Test server via rsync
|
- name: Deploy to Test server via rsync
|
||||||
uses: burnett01/rsync-deployments@5.2.1
|
uses: burnett01/rsync-deployments@5.2.1
|
||||||
|
@ -19,7 +19,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Add gitea as nuget source
|
- name: Add gitea as nuget source
|
||||||
run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text http://test.digitaldrilling.ru:8080/api/packages/DDrilling/nuget/index.json
|
run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text http://test.digitaldrilling.ru:8080/api/packages/DDrilling/nuget/index.json
|
||||||
- run: dotnet test AsbCloudWebApi.Tests
|
- run: dotnet test AsbCloudInfrastructure.Tests
|
||||||
- run: dotnet publish AsbCloudWebApi --os linux --sc true -o ./build
|
- run: dotnet publish AsbCloudWebApi --os linux --sc true -o ./build
|
||||||
- name: Deploy to ASB server via rsync
|
- name: Deploy to ASB server via rsync
|
||||||
uses: burnett01/rsync-deployments@5.2.1
|
uses: burnett01/rsync-deployments@5.2.1
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
name: deploy test server
|
|
||||||
run-name: ${{ gitea.actor }} is deploying to test server
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy-test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Setup dotnet
|
|
||||||
if: ${{ steps.cache-dotnet.outputs.cache-hit != 'true' }}
|
|
||||||
uses: actions/setup-dotnet@v4
|
|
||||||
with:
|
|
||||||
dotnet-version: 8.0.x
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Add gitea as nuget source
|
|
||||||
run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text http://test.digitaldrilling.ru:8080/api/packages/DDrilling/nuget/index.json
|
|
||||||
- run: dotnet test AsbCloudWebApi.Tests
|
|
||||||
- run: dotnet publish AsbCloudWebApi --os linux --sc true -o ./build
|
|
||||||
- name: Deploy to Test server via rsync
|
|
||||||
uses: burnett01/rsync-deployments@5.2.1
|
|
||||||
with:
|
|
||||||
switches: -avzr --delete --exclude="files" --exclude="appsettings.json"
|
|
||||||
path: ./build/
|
|
||||||
remote_path: /home/asb/AsbCloud/
|
|
||||||
remote_host: test.digitaldrilling.ru
|
|
||||||
remote_user: asb
|
|
||||||
remote_port: 35222
|
|
||||||
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
@ -18,5 +18,5 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Add gitea as nuget source
|
- name: Add gitea as nuget source
|
||||||
run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text http://test.digitaldrilling.ru:8080/api/packages/DDrilling/nuget/index.json
|
run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text http://test.digitaldrilling.ru:8080/api/packages/DDrilling/nuget/index.json
|
||||||
- run: dotnet test AsbCloudWebApi.Tests
|
- run: dotnet test AsbCloudInfrastructure.Tests
|
||||||
|
|
Loading…
Reference in New Issue
Block a user