Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.03 KB

DOCS.md

File metadata and controls

35 lines (28 loc) · 1.03 KB

This plugin has not been fully tested. Proceed with caution.

Use this plugin for deplying an application via git push. You can override the default configuration with the following parameters:

  • remote - Target remote repository (if blank, assume exists)
  • remote_name - Name of the remote to use locally (default "deploy")
  • branch - Target remote branch, defaults to master
  • local_branch - Local branch or ref to push (default "HEAD")
  • force - Force push using the --force flag, defaults to false
  • skip_verify - Skip verification of HTTPS certs, defaults to false
  • commit - Add and commit the contents of the repo before pushing, defaults to false

Example

The following is a sample configuration in your .drone.yml file:

deploy:
  git_push:
    branch: master
    remote: git@git.heroku.com:falling-wind-1624.git
    force: false
    commit: true

An example of pushing a branch back to the current repository:

deploy:
  git_push:
    remote_name: origin
    branch: gh-pages
    local_ref: gh-pages