Added publish step to dotnet

This commit is contained in:
2026-04-04 15:06:32 +02:00
parent 6bd60452f2
commit c6799a146a

View File

@@ -7,12 +7,13 @@ clone:
depth: 1 depth: 1
steps: steps:
# --- BUILD & TEST STAGE --- - name: build-test-publish
- name: build-and-test
image: mcr.microsoft.com/dotnet/sdk:10.0 image: mcr.microsoft.com/dotnet/sdk:10.0
commands: commands:
- dotnet build --configuration Release - dotnet restore
- dotnet test --configuration Release - dotnet build --configuration Release --no-restore
- dotnet test --configuration Release --no-build
- dotnet publish --configuration Release --no-build
# --- PACKAGE STAGE --- # --- PACKAGE STAGE ---
# We build the image locally first so we can scan it BEFORE pushing # We build the image locally first so we can scan it BEFORE pushing