mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 02:41:01 +00:00
956 B
956 B
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. See the plugin marketplace for a list of official plugins.
An example plugin that deploys to Heroku:
deploy:
heroku:
app: pied_piper
token: f10e2821bbbea5
Deploy conditions
Use the when
attribute to limit deployments to a specific branch:
deploy:
heroku:
when:
branch: master
# you can also do simple matching
google_appengine:
when:
branch: feature/*
Declare multiple heroku
deployment steps:
# deploy master to our production heroku environment
heroku:
app: app.com
when:
branch: master
# deploy to our staging heroku environment
heroku:
app: staging.app.com
when:
branch: stage