Drone plugins > Git Push

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

    stringoptional

    Private SSH key for the remote machine.

    Default: none

  • remote

    stringrequired

    target remote repository (if blank, assume exists).

    Default: none

  • remote_name

    stringoptional

    name of the remote to use locally.

    Default: deploy

  • branch

    stringoptional

    target branch to push to.

    Default: master

  • local_branch

    stringoptional

    local branch or ref to push from.

    Default: HEAD

  • path

    stringoptional

    path to the repository.

    Default: current repo

  • force

    booleanoptional

    force push using the --force flag.

    Default: false

  • skip_verify

    booleanoptional

    skip verification of HTTPS certs.

    Default: false

  • commit

    booleanoptional

    add and commit the contents of the repo before pushing.

    Default: false

  • commit_message

    stringoptional

    add a custom message for commit.

    Default: [skip ci] Commit dirty state

  • empty_commit

    booleanoptional

    create an empty commit if there are no changes.

    Default: false

  • author_name

    stringoptional

    author name for commit.

    Default: commiter name

  • author_email

    stringoptional

    author email for commit.

    Default: commiter email

  • followtags

    booleanoptional

    push with --follow-tags option.

    Default: false