From a4dc88cd5eb2e7337ecb1411aeb373c2637cd1c8 Mon Sep 17 00:00:00 2001 From: Bohdan Sukhov Date: Mon, 7 Oct 2019 12:47:52 +0300 Subject: [PATCH] Docs. Example for drone >=1.0 w settings --- DOCS.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/DOCS.md b/DOCS.md index b6138f7..cd87c77 100644 --- a/DOCS.md +++ b/DOCS.md @@ -40,6 +40,25 @@ pipeline: - octocat@github.com ``` +For drone version **>=1.0** dont forget to use `settings` key: + +```yaml +kind: pipeline +type: docker +name: default + +steps: +- name: notify + image: drillster/drone-email + settings: + from: noreply@github.com + host: smtp.mailgun.org + username: octocat + password: 12345 + recipients: + - octocat@github.com +``` + ### Secrets The Email plugin supports reading credentials and other parameters from the Drone secret store. This is strongly recommended instead of storing credentials in the pipeline configuration in plain text. @@ -150,4 +169,5 @@ and then sign your configuration using: ```sh drone sign octocat/hello-world -``` \ No newline at end of file +``` +