MOved donet package step to build stage
This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -26,7 +26,11 @@ steps:
|
|||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
commands:
|
commands:
|
||||||
- dotnet test --configuration Release
|
- dotnet test --configuration Release
|
||||||
|
|
||||||
|
- name: dotnet publish
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
commands:
|
||||||
|
- dotnet publish --configuration Release
|
||||||
---
|
---
|
||||||
x-docker-auth: &docker-auth
|
x-docker-auth: &docker-auth
|
||||||
DOCKER_AUTH_CONFIG: |
|
DOCKER_AUTH_CONFIG: |
|
||||||
@@ -58,11 +62,6 @@ steps:
|
|||||||
- git clone https://gitea.khongisa.co.za/MngomaLab/webapitest.git .
|
- git clone https://gitea.khongisa.co.za/MngomaLab/webapitest.git .
|
||||||
- git checkout ${DRONE_COMMIT}
|
- git checkout ${DRONE_COMMIT}
|
||||||
|
|
||||||
- name: dotnet publish
|
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
||||||
commands:
|
|
||||||
- dotnet publish --configuration Release
|
|
||||||
|
|
||||||
- name: build and push
|
- name: build and push
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user