diff --git a/.gitea/workflows/integrationTests.yaml b/.gitea/workflows/testAndPublish.yaml similarity index 99% rename from .gitea/workflows/integrationTests.yaml rename to .gitea/workflows/testAndPublish.yaml index ff73e4d..32aff4a 100644 --- a/.gitea/workflows/integrationTests.yaml +++ b/.gitea/workflows/testAndPublish.yaml @@ -6,7 +6,7 @@ on: - master jobs: - tests: + tests-and-publication: runs-on: ubuntu-latest # container: node @@ -49,9 +49,6 @@ jobs: - 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: Run integration tests run: dotnet test DD.Persistence.IntegrationTests @@ -70,6 +67,9 @@ jobs: - name: Publish Persistence Models Package run: dotnet nuget push ./artifacts/DD.Persistence.Models.*.nupkg --source gitea --skip-duplicate + - 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 .