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 732cd7d717
Some checks reported errors
continuous-integration/drone/push Build was killed
chore: don't wait and build
2020-11-27 17:12:39 +01:00

54 lines
803 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 clean
- dotnet restore
- dotnet publish -c Release
---
kind: pipeline
type: docker
name: test-build-docker
platform:
os: linux
arch: amd64
workspace:
path: /src
steps:
- name: docker-release-build
pull: always
image: banzaicloud/drone-kaniko
settings:
dockerfile: Dockerfile
context: /src
- name: docker-debug-build
pull: always
image: banzaicloud/drone-kaniko
settings:
dockerfile: Dockerfile.dev
context: /src