drone-pre-commit/.drone.yml

54 lines
1000 B
YAML
Raw Normal View History

2020-09-08 17:00:20 +00:00
---
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
2020-09-08 20:20:54 +00:00
- name: push personal image
image: plugins/docker
settings:
repo: iamthefij/drone-pre-commit
dockerfile: ./Dockerfile.personal
tags:
- personal
username:
from_secret: docker_username
password:
from_secret: docker_password
2020-09-08 17:00:20 +00:00
---
kind: pipeline
name: notify
depends_on:
2020-09-08 17:15:41 +00:00
- deploy
2020-09-08 17:00:20 +00:00
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