Git Push
by appleboy
Use this plugin for deploying an application via `git push`. You will need to supply Drone with a private SSH key or use the same credentials as the cloned repo to being able to push changes.
Example
kind: pipeline
name: default
steps:
- name: git-push
image: appleboy/drone-git-push
settings:
branch: master
remote: git@git.heroku.com:falling-wind-1624.git
force: false
commit: true
Properties
ssh_key
stringoptionalPrivate SSH key for the remote machine.
Default: none
remote
stringrequiredtarget remote repository (if blank, assume exists).
Default: none
remote_name
stringoptionalname of the remote to use locally.
Default: deploy
branch
stringoptionaltarget branch to push to.
Default: master
local_branch
stringoptionallocal branch or ref to push from.
Default: HEAD
path
stringoptionalpath to the repository.
Default: current repo
force
booleanoptionalforce push using the --force flag.
Default: false
skip_verify
booleanoptionalskip verification of HTTPS certs.
Default: false
commit
booleanoptionaladd and commit the contents of the repo before pushing.
Default: false
commit_message
stringoptionaladd a custom message for commit.
Default: [skip ci] Commit dirty state
empty_commit
booleanoptionalcreate an empty commit if there are no changes.
Default: false
author_name
stringoptionalauthor name for commit.
Default: commiter name
author_email
stringoptionalauthor email for commit.
Default: commiter email
followtags
booleanoptionalpush with --follow-tags option.
Default: false