From 3d93c5f187db1ab040dbf8c66b24961d1a3d0d7b Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Mon, 19 Aug 2024 13:22:25 +0500 Subject: [PATCH 1/2] fix devops --- .gitea/workflows/deploy-dev.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-dev.yaml b/.gitea/workflows/deploy-dev.yaml index d263b21a..ca5980ec 100644 --- a/.gitea/workflows/deploy-dev.yaml +++ b/.gitea/workflows/deploy-dev.yaml @@ -19,7 +19,7 @@ jobs: 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 AsbCloudInfrastructure.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 From 2e4d3edd890b86bd610a7912ab64247d1e1a364a Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Mon, 19 Aug 2024 13:22:25 +0500 Subject: [PATCH 2/2] fix devops --- .gitea/workflows/deploy-dev.yaml | 2 +- .gitea/workflows/deploy-prod.yaml | 2 +- .gitea/workflows/deploy.yaml | 33 ------------------------------- .gitea/workflows/unit-tests.yaml | 2 +- 4 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy-dev.yaml b/.gitea/workflows/deploy-dev.yaml index d263b21a..ca5980ec 100644 --- a/.gitea/workflows/deploy-dev.yaml +++ b/.gitea/workflows/deploy-dev.yaml @@ -19,7 +19,7 @@ jobs: 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 AsbCloudInfrastructure.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 diff --git a/.gitea/workflows/deploy-prod.yaml b/.gitea/workflows/deploy-prod.yaml index fc6cd3f6..3a388473 100644 --- a/.gitea/workflows/deploy-prod.yaml +++ b/.gitea/workflows/deploy-prod.yaml @@ -19,7 +19,7 @@ jobs: 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 AsbCloudInfrastructure.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 diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml deleted file mode 100644 index 105d57c4..00000000 --- a/.gitea/workflows/deploy.yaml +++ /dev/null @@ -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 }} \ No newline at end of file diff --git a/.gitea/workflows/unit-tests.yaml b/.gitea/workflows/unit-tests.yaml index cd318b27..5b4bb1c4 100644 --- a/.gitea/workflows/unit-tests.yaml +++ b/.gitea/workflows/unit-tests.yaml @@ -18,5 +18,5 @@ jobs: 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 AsbCloudInfrastructure.Tests \ No newline at end of file