drone-pre-commit/.drone.yml
2020-09-08 10:02:15 -07:00

43 lines
723 B
YAML

---
kind: pipeline
name: deploy
steps:
- name: push base image
image: plugins/docker
settings:
repo: iamthefij/drone-pre-commit
tags:
- latest
- base
username:
from_secret: docker_username
password:
from_secret: docker_password
---
kind: pipeline
name: notify
depends_on:
- test
- publish
trigger:
status:
- failure
steps:
- name: notify
image: drillster/drone-email
settings:
host:
from_secret: SMTP_HOST # pragma: whitelist secret
username:
from_secret: SMTP_USER # pragma: whitelist secret
password:
from_secret: SMTP_PASS # pragma: whitelist secret
from: drone@iamthefij.com