тестирование и публикация в одном job
All checks were successful
Unit tests / tests-and-publication (push) Successful in 1m33s

This commit is contained in:
Оля Бизюкова 2025-02-04 11:46:46 +05:00
parent 3835bf284b
commit d67eaca0e6

View File

@ -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 .