surtur
b3755bfd56
All checks were successful
continuous-integration/drone/push Build is passing
the tag's also moving but efforts are made to only push working code there so it should do in terms of stability
82 lines
1.5 KiB
YAML
82 lines
1.5 KiB
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: restore
|
|
pull: always
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
|
|
volumes:
|
|
- name: pkgcache
|
|
path: /root/.nuget/packages
|
|
depends_on: [clone]
|
|
commands:
|
|
- dotnet restore
|
|
|
|
- name: debug
|
|
pull: always
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
|
|
volumes:
|
|
- name: pkgcache
|
|
path: /root/.nuget/packages
|
|
depends_on: [restore]
|
|
commands:
|
|
- dotnet build .
|
|
|
|
- name: release
|
|
pull: always
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
|
|
volumes:
|
|
- name: pkgcache
|
|
path: /root/.nuget/packages
|
|
depends_on: [restore]
|
|
commands:
|
|
- dotnet publish -c Release -o out
|
|
|
|
- name: hadolint release
|
|
image: hadolint/hadolint:v1.23.0-8-gb01c5a9-alpine
|
|
depends_on: [clone]
|
|
commands:
|
|
- hadolint --version
|
|
- hadolint Dockerfile
|
|
|
|
- name: hadolint debug
|
|
image: hadolint/hadolint:v1.23.0-8-gb01c5a9-alpine
|
|
depends_on: [clone]
|
|
commands:
|
|
- hadolint --version
|
|
- hadolint Dockerfile.dev
|
|
|
|
- name: docker-release-build
|
|
pull: always
|
|
image: immawanderer/drone-kaniko:linux-amd64
|
|
depends_on: [release, hadolint release]
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
|
|
- name: docker-debug-build
|
|
pull: always
|
|
image: immawanderer/drone-kaniko:linux-amd64
|
|
depends_on: [debug, hadolint debug]
|
|
settings:
|
|
dockerfile: Dockerfile.dev
|
|
context: .
|
|
|
|
volumes:
|
|
- name: pkgcache
|
|
temp: {}
|
|
|