Knowledge

Git Push

Parameters
Name Description
action Required String The ID of the action.
push_url Required String The url to the repository.
type Required String The type of the action. Should be set to PUSH.
git_auth_mode Required String The authentication mode for Git Push. Can be one of HTTP, PRIVATE_KEY or PUBLIC_BUDDY_KEY.
trigger_time String Specifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
login String The username required to connect to the server.
password String The password required to connect to the server.
use_custom_gitignore Boolean When set to false the push will ignore paths listed in .gitignore file.
isolated Boolean When set to true, action will push only repository files (without artifacts).
target_branch String Defines the remote branch to which the push will be performed. If empty, files will be pushed to the same branch.
deployment_excludes String[] The paths and/or files that will be left out during the push. Only works when use_custom_gitignore is set to true.
push_tags Boolean Defines whether the tags should be pushed to the remote repository or not.
Example
actions:
  - action: "Push to https://app.buddy.works/buddy/repo"
    type: "PUSH"
    login: "api_tests_user"
    password: "api_tests_password"
    push_tags: true
    push_url: "https://app.buddy.works/buddy/repo"
    target_branch: "stage"
    git_auth_mode: HTTP
    use_custom_gitignore: false
    isolated: true

Get started now

14 days of unlimited trial. No credit card required.