All checks were successful
continuous-integration/drone/pr Build is passing
* global.json sdk value will now match 3.1.whatever * rm the now-redundant sed both from the ci pipeline and Dockerfile* * limit ci pipeline runs to single build for an event. e.g. on a pr, run a single build instead of both a pr build and a push build * edit Makefile to force --no-cache builds
46 lines
779 B
YAML
46 lines
779 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: test-build
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/master
|
|
- refs/heads/feature-*
|
|
- refs/pull/*/head
|
|
- refs/tags/*
|
|
|
|
steps:
|
|
- name: debug
|
|
pull: always
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
|
|
commands:
|
|
- dotnet restore
|
|
- dotnet build .
|
|
|
|
- name: release
|
|
pull: always
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
|
|
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: .
|
|
|