--- kind: pipeline type: docker name: test-build platform: os: linux arch: amd64 steps: - name: sed-tgt-version pull: always image: bash commands: - sed -i 's/2.1.519/2.1.811/' global.json - name: debug pull: always image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine depends_on: - sed-tgt-version commands: - dotnet restore - dotnet build . - name: release pull: always image: mcr.microsoft.com/dotnet/core/sdk:2.1-alpine depends_on: - debug commands: - dotnet clean - dotnet restore - dotnet publish -c Release - name: docker-release-build pull: always image: banzaicloud/drone-kaniko environment: - PLUGIN_DOCKERFILE=Dockerfile - name: docker-debug-build pull: always image: banzaicloud/drone-kaniko environment: - PLUGIN_DOCKERFILE=Dockerfile.dev