Docs. Example for drone >=1.0 w settings

This commit is contained in:
Bohdan Sukhov 2019-10-07 12:47:52 +03:00
parent 44396c108b
commit a4dc88cd5e

22
DOCS.md
View file

@ -40,6 +40,25 @@ pipeline:
- octocat@github.com - 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 ### 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. 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 ```sh
drone sign octocat/hello-world drone sign octocat/hello-world
``` ```