Drone plugin to run pre-commit hooks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 lines
1000 B

---
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