This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/.drone.yml
surtur 3f775a110b
All checks were successful
continuous-integration/drone/push Build is passing
fix: clean build after restore
* this fixes occasional situation when NuGets have not been restored yet
  but the clean build already running required them, which resulted a
  failed build
2020-11-29 21:08:11 +01:00

40 lines
670 B
YAML

---
kind: pipeline
type: docker
name: test-build
platform:
os: linux
arch: amd64
steps:
- name: debug
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
commands:
- dotnet restore
- dotnet build .
- name: release
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine
commands:
- dotnet restore
- dotnet clean
- dotnet publish -c Release
- name: docker-release-build
pull: always
image: banzaicloud/drone-kaniko
settings:
dockerfile: Dockerfile
context: .
- name: docker-debug-build
pull: always
image: banzaicloud/drone-kaniko
settings:
dockerfile: Dockerfile.dev
context: .