This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/.drone.yml
surtur b3755bfd56
All checks were successful
continuous-integration/drone/push Build is passing
ci: use linux-amd64 stable tag
the tag's also moving but efforts are made to only push working code
there so it should do in terms of stability
2021-05-02 04:08:18 +02:00

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: {}