drone-pre-commit/.drone.yml
Ian Fijolek becc9bf0b1
All checks were successful
continuous-integration/drone/push Build is passing
Add personal image with hadolint
2020-09-08 13:20:54 -07:00

54 lines
1000 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
- 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
---
kind: pipeline
name: notify
depends_on:
- deploy
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