Merge pull request 'Added publish step to dotnet' (#86) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #86
This commit was merged in pull request #86.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user