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

82 lines
1.5 KiB
YAML
Raw Normal View History

2020-11-26 03:39:14 +01:00
---
kind: pipeline
type: docker
2020-11-26 04:06:24 +01:00
name: test-build
2020-11-26 03:39:14 +01:00
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/heads/master
- refs/heads/feature-*
- refs/pull/*/head
- refs/tags/*
steps:
- name: restore
2020-11-26 03:39:14 +01:00
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
volumes:
2021-02-07 22:13:15 +01:00
- name: pkgcache
path: /root/.nuget/packages
depends_on: [clone]
2020-11-26 03:39:14 +01:00
commands:
- dotnet restore
- name: debug
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
volumes:
2021-02-07 22:13:15 +01:00
- name: pkgcache
path: /root/.nuget/packages
depends_on: [restore]
commands:
2020-11-26 03:39:14 +01:00
- dotnet build .
2020-11-26 04:01:28 +01:00
- name: release
pull: always
image: mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
volumes:
2021-02-07 22:13:15 +01:00
- 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]
2020-11-27 13:23:33 +01:00
settings:
dockerfile: Dockerfile
2020-11-27 14:30:08 +01:00
context: .
- name: docker-debug-build
pull: always
image: immawanderer/drone-kaniko:linux-amd64
depends_on: [debug, hadolint debug]
2020-11-27 13:23:33 +01:00
settings:
dockerfile: Dockerfile.dev
2020-11-27 14:30:08 +01:00
context: .
volumes:
2021-02-07 22:13:15 +01:00
- name: pkgcache
temp: {}