pipline для публикации убран пока в integrationTests
This commit is contained in:
parent
a0cbe6ef21
commit
8fcd0d8456
@ -59,3 +59,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish Persistence Models Package
|
- name: Publish Persistence Models Package
|
||||||
run: dotnet nuget push ./artifacts/DD.Persistence.Models.*.nupkg --source gitea --skip-duplicate
|
run: dotnet nuget push ./artifacts/DD.Persistence.Models.*.nupkg --source gitea --skip-duplicate
|
||||||
|
pubcontainer:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- 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 .
|
||||||
|
# run: docker build -t git.ddrilling.ru/ddrilling/iocollector:latest --network=host --build-arg PUBLISHERPASSWORD="${{ secrets.PUBLISHER_PASSWORD }}" -f DD.IoCollector.App/Dockerfile .
|
||||||
|
|
||||||
|
- name: Push Docker image to Gitea
|
||||||
|
run: docker push git.ddrilling.ru/ddrilling/persistence:latest
|
||||||
|
@ -1,43 +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: Run integration tests
|
|
||||||
run: dotnet test DD.Persistence.IntegrationTests
|
|
||||||
|
|
||||||
- name: Run unit tests
|
|
||||||
run: dotnet test DD.Persistence.Test --no-build
|
|
||||||
|
|
||||||
- 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/on.nemtina/persistence:latest --network=host --build-arg PUBLISHERPASSWORD="${{ secrets.PUBLISHER_PASSWORD }}" -f DD.Persistence.App/Dockerfile .
|
|
||||||
# run: docker build -t git.ddrilling.ru/ddrilling/iocollector:latest --network=host --build-arg PUBLISHERPASSWORD="${{ secrets.PUBLISHER_PASSWORD }}" -f DD.IoCollector.App/Dockerfile .
|
|
||||||
|
|
||||||
- name: Push Docker image to Gitea
|
|
||||||
run: docker push git.ddrilling.ru/ddrilling/persistence:latest
|
|
Loading…
Reference in New Issue
Block a user