From 3ba6f9879311c652cf896f5bed0ad77fef6005cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D1=8F=20=D0=91=D0=B8=D0=B7=D1=8E=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0?= Date: Tue, 4 Feb 2025 11:16:23 +0500 Subject: [PATCH] =?UTF-8?q?2=20jobs=20=D0=B2=20=D0=BE=D0=B4=D0=BD=D0=BE?= =?UTF-8?q?=D0=BC=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B5,=20=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B5=202=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20=D1=81=20=D0=BE?= =?UTF-8?q?=D0=B4=D0=BD=D0=BE=D0=B9=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/integrationTests.yaml | 29 +++++++++++++++++++++ .gitea/workflows/publication.yaml | 36 -------------------------- 2 files changed, 29 insertions(+), 36 deletions(-) delete mode 100644 .gitea/workflows/publication.yaml diff --git a/.gitea/workflows/integrationTests.yaml b/.gitea/workflows/integrationTests.yaml index e1c6e62..ae115cd 100644 --- a/.gitea/workflows/integrationTests.yaml +++ b/.gitea/workflows/integrationTests.yaml @@ -59,4 +59,33 @@ jobs: - name: Publish Persistence Models Package run: dotnet nuget push ./artifacts/DD.Persistence.Models.*.nupkg --source gitea --skip-duplicate + pubcontainer: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET + if: ${{ steps.cache-dotnet.outputs.cache-hit != 'true' }} + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + + - name: Add gitea as nuget source + run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text https://git.ddrilling.ru/api/packages/DDrilling/nuget/index.json + + - name: Restore dependencies + run: dotnet restore + + - name: Build solution + run: dotnet build --no-restore + + - name: Login to Gitea Docker Registry + run: docker login -u publisher -p ${{ secrets.PUBLISHER_PASSWORD }} https://git.ddrilling.ru + + - name: Docker Build + run: docker build -t git.ddrilling.ru/ddrilling/persistence:latest --network=host --build-arg PUBLISHERPASSWORD="${{ secrets.PUBLISHER_PASSWORD }}" -f DD.Persistence.App/Dockerfile . + + - name: Push Docker image to Gitea + run: docker push git.ddrilling.ru/ddrilling/persistence:latest diff --git a/.gitea/workflows/publication.yaml b/.gitea/workflows/publication.yaml deleted file mode 100644 index 6bbc840..0000000 --- a/.gitea/workflows/publication.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: .NET Persistence -on: - push: - branches: - - master - -jobs: - pubcontainer: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup .NET - if: ${{ steps.cache-dotnet.outputs.cache-hit != 'true' }} - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 9.0.x - - - name: Add gitea as nuget source - run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text https://git.ddrilling.ru/api/packages/DDrilling/nuget/index.json - - - name: Restore dependencies - run: dotnet restore - - - name: Build solution - run: dotnet build --no-restore - - - name: Login to Gitea Docker Registry - run: docker login -u publisher -p ${{ secrets.PUBLISHER_PASSWORD }} https://git.ddrilling.ru - - - name: Docker Build - run: docker build -t git.ddrilling.ru/ddrilling/persistence:latest --network=host --build-arg PUBLISHERPASSWORD="${{ secrets.PUBLISHER_PASSWORD }}" -f DD.Persistence.App/Dockerfile . - - - name: Push Docker image to Gitea - run: docker push git.ddrilling.ru/ddrilling/persistence:latest \ No newline at end of file