Merge pull request #32 from macejiko/master

Docs. Example for drone >=1.0 w settings
This commit is contained in:
Michael de Wit 2019-10-19 10:22:45 +02:00 committed by GitHub
commit f39d409f1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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