1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-05 10:20:36 +02:00
woodpecker/doc/build/deploy.md

48 lines
956 B
Markdown
Raw Normal View History

2015-07-08 03:08:43 +02:00
# Deploy
Drone uses the `deploy` section of the `.drone.yml` to configure deployment steps. Drone does not have any built-in deployment capabilities. This functionality is outsourced to [plugins](http://addons.drone.io). See the [plugin marketplace](http://addons.drone.io) for a list of official plugins.
An example plugin that deploys to Heroku:
```yaml
deploy:
heroku:
app: pied_piper
token: f10e2821bbbea5
```
2015-07-08 09:06:19 +02:00
## Deploy conditions
Use the `when` attribute to limit deployments to a specific branch:
```yaml
deploy:
heroku:
when:
branch: master
# you can also do simple matching
google_appengine:
when:
branch: feature/*
```
2015-09-08 22:40:03 +02:00
Declare multiple `heroku` deployment steps:
2015-07-08 03:08:43 +02:00
```yaml
# deploy master to our production heroku environment
2015-09-08 22:40:03 +02:00
heroku:
app: app.com
2015-07-08 03:08:43 +02:00
when:
branch: master
# deploy to our staging heroku environment
2015-07-10 02:01:03 +02:00
heroku:
2015-09-08 22:40:03 +02:00
app: staging.app.com
2015-07-10 02:01:03 +02:00
when:
branch: stage
2015-07-08 03:08:43 +02:00
```