71 lines
1005 B
YAML
71 lines
1005 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: kubernetes
|
||
|
name: build_a
|
||
|
|
||
|
platform:
|
||
|
os: linux
|
||
|
arch: amd64
|
||
|
|
||
|
steps:
|
||
|
- name: test_a
|
||
|
commands:
|
||
|
- echo "hello"
|
||
|
image: docker.io/library/alpine:latest
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: 50
|
||
|
memory: 50M
|
||
|
|
||
|
---
|
||
|
kind: pipeline
|
||
|
type: kubernetes
|
||
|
name: build_b
|
||
|
|
||
|
platform:
|
||
|
os: linux
|
||
|
arch: amd64
|
||
|
|
||
|
steps:
|
||
|
- name: test_b
|
||
|
commands:
|
||
|
- exit 1
|
||
|
image: docker.io/library/alpine:latest
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: 50
|
||
|
memory: 50M
|
||
|
|
||
|
---
|
||
|
kind: pipeline
|
||
|
type: kubernetes
|
||
|
name: notification
|
||
|
|
||
|
platform:
|
||
|
os: linux
|
||
|
arch: amd64
|
||
|
|
||
|
depends_on:
|
||
|
- build_a
|
||
|
- build_b
|
||
|
|
||
|
steps:
|
||
|
- name: email-notification
|
||
|
environment:
|
||
|
PLUGIN_HOST:
|
||
|
from_secret: smtp_host
|
||
|
PLUGIN_USERNAME:
|
||
|
from_secret: smtp_username
|
||
|
PLUGIN_PASSWORD:
|
||
|
from_secret: smtp_password
|
||
|
PLUGIN_FROM:
|
||
|
from_secret: smtp_mail_address
|
||
|
image: docker.io/drillster/drone-email:latest
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: 50
|
||
|
memory: 25M
|
||
|
when:
|
||
|
status:
|
||
|
- changed
|
||
|
- failure
|