--- 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: .