YAML for Git Push
Push changes to a Git repository with support for tags and signing.
YAML examples for Git Push
Git push with tags
yaml
- action: "Git Push"
type: "PUSH"
push_tags: true
target_branch: "$BUDDY_RUN_BRANCH"
comment: "$BUDDY_RUN_ID"
tag: "example"
custom_options: "--force"
deployment_excludes:
- "example_file_to_ignore"
targets:
- "example_git_push_target"
without_force: false
use_custom_gitignore: true
Git Push with password authentication target
yaml
- action: "Git Push"
type: "PUSH"
target_branch: "$BUDDY_RUN_BRANCH"
targets:
- target: git_password
type: GIT
repository: https://github.com/example/my-repository
name: example_name
auth:
username: user
password: example_password
Git Push with SSH key authentication target
yaml
- action: "Git Push"
type: "PUSH"
target_branch: "$BUDDY_RUN_BRANCH"
targets:
- target: git_workspace
type: GIT
repository: https://github.com/example/my-repository
name: GIT WORKSPACE
auth:
method: SSH_KEY
key: example_ssh_key
Git Push with asset key authentication target
yaml
- action: "Git Push"
type: "PUSH"
target_branch: "$BUDDY_RUN_BRANCH"
targets:
- target: git_workspace
type: GIT
repository: https://github.com/example/my-repository
name: GIT WORKSPACE
auth:
method: ASSETS_KEY
asset: example_asset_name