harness-drone/doc/build/deploy.md
2015-07-08 00:06:19 -07:00

1.9 KiB

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/*