pwt-final-countdown/.drone.yml
surtur d63715392e
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2020-12-17 14:53:05 +01:00

50 lines
930 B
YAML

---
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/3.1.110/3.1.404/' global.json
# since we're running 3.1.404 here in the CI, this is necessary
- name: debug
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
depends_on:
- sed-tgt-version
commands:
- dotnet restore
- dotnet build .
- name: release
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
depends_on:
- sed-tgt-version
commands:
- dotnet restore
- dotnet publish -c Release -o out
- name: docker-release-build
pull: always
image: ghcr.io/finitum/drone-kaniko:0.7.0
settings:
dockerfile: Dockerfile
context: .
- name: docker-debug-build
pull: always
image: ghcr.io/finitum/drone-kaniko:0.7.0
settings:
dockerfile: Dockerfile.dev
context: .