forked from ddrilling/AsbCloudServer
Merge branch 'dev' into fix/dtos-add-required-attribute
This commit is contained in:
commit
bfdb844b56
33
.gitea/workflows/deploy-dev.yaml
Normal file
33
.gitea/workflows/deploy-dev.yaml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
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: 6.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 }}
|
43
.gitea/workflows/deploy-prod.yaml
Normal file
43
.gitea/workflows/deploy-prod.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: deploy test server
|
||||||
|
run-name: ${{ gitea.actor }} is deploying to test server
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy-prods:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup dotnet
|
||||||
|
if: ${{ steps.cache-dotnet.outputs.cache-hit != 'true' }}
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: 6.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 ASB server via rsync
|
||||||
|
uses: burnett01/rsync-deployments@5.2.1
|
||||||
|
with:
|
||||||
|
switches: -avzr --delete --exclude="files" --exclude="appsettings.json"
|
||||||
|
path: ./build/
|
||||||
|
remote_path: /home/dev/new_version/backend/
|
||||||
|
remote_host: cloud.autodrilling.ru
|
||||||
|
remote_user: dev
|
||||||
|
remote_port: 6923
|
||||||
|
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
- name: Deploy to DD 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/new_version/backend/
|
||||||
|
remote_host: cloud.digitaldrilling.ru
|
||||||
|
remote_user: asb
|
||||||
|
remote_port: 22
|
||||||
|
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
@ -1,12 +1,12 @@
|
|||||||
name: deploy
|
name: deploy test server
|
||||||
run-name: ${{ gitea.actor }} is deploying
|
run-name: ${{ gitea.actor }} is deploying to test server
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -21,13 +21,13 @@ jobs:
|
|||||||
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 AsbCloudWebApi.Tests
|
||||||
- run: dotnet publish AsbCloudWebApi --os linux --sc true -o ./build
|
- run: dotnet publish AsbCloudWebApi --os linux --sc true -o ./build
|
||||||
- name: Deploy to Server
|
- name: Deploy to Test server via rsync
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
uses: burnett01/rsync-deployments@5.2.1
|
||||||
with:
|
with:
|
||||||
host: test.digitaldrilling.ru
|
switches: -avzr --delete --exclude="files" --exclude="appsettings.json"
|
||||||
username: asb
|
path: ./build/
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
remote_path: /home/asb/AsbCloud/
|
||||||
port: 35222
|
remote_host: test.digitaldrilling.ru
|
||||||
script: |
|
remote_user: asb
|
||||||
cd /home/asb/AsbCloudDeployTest/
|
remote_port: 35222
|
||||||
rsync -avzP --delete --exclude "backup" . ./backup
|
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
@ -1,9 +1,6 @@
|
|||||||
name: Unit tests
|
name: Unit tests
|
||||||
run-name: ${{ gitea.actor }} is testing
|
run-name: ${{ gitea.actor }} is testing
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [review_requested, ready_for_review]
|
types: [review_requested, ready_for_review]
|
||||||
|
|
||||||
@ -19,5 +16,7 @@ jobs:
|
|||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
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 test AsbCloudWebApi.Tests
|
||||||
|
|
Loading…
Reference in New Issue
Block a user