Update README.md

This commit is contained in:
Ruan Bekker 2019-04-22 20:05:10 +02:00 committed by GitHub
parent 42d5e2ad57
commit c5b91d23c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@ Contents of this page
* [SSH Example](#ssh-example) * [SSH Example](#ssh-example)
* [SCP Example](#scp-example) * [SCP Example](#scp-example)
* [Rsync Example](#rsync-example) * [Rsync Example](#rsync-example)
* [Parallel Builds](#parallel-builds)
* [Full Pipeline Examples](#pipeline-examples) * [Full Pipeline Examples](#pipeline-examples)
## Drone CLI Setup ## Drone CLI Setup
@ -393,6 +394,8 @@ Mentioned here:
And that your repository is marked as trusted. And that your repository is marked as trusted.
Note that this will run on the host where the drone agent is located.
``` ```
deploy: deploy:
image: docker image: docker
@ -427,6 +430,32 @@ And that your repository is marked as trusted.
event: [push] event: [push]
``` ```
### Parallel Builds
Running steps in parallel:
```
p1-a:
image: alpine
group: test
environment:
TAGS: foobar
commands:
- sleep 20
- date
- echo done
p1-b:
image: alpine
group: test
environment:
TAGS: foobar
commands:
- sleep 20
- date
- echo done
```
### Example Pipelines ### Example Pipelines
- [myth/overflow drone pipeline](https://github.com/myth/overflow/blob/master/.drone.yml) - [myth/overflow drone pipeline](https://github.com/myth/overflow/blob/master/.drone.yml)