git-clone-ssh

clone git repositories via SSH.

Arguments

  • BRANCH - Branch name to checkout (e.g. `master`)
  • CLONE_PATH * - Path where `git clone` is going to be executed. A "`repo-name`" directory will be created there
  • REMOTE_URL * - Reporitory SSH URL (e.g. `git@github.com:my-user/my-repo.git`)
  • SPLIT_CHAR * - Split character you’ve used to replace newline in SSH key
  • SSH_KEY * - Private SSH key to access the repository.
    version: '1.0'
steps:
  clone_repo_via_ssh:
    type: git-clone-ssh
    arguments:
      REMOTE_URL: '${{REMOTE_URL}}'
      BRANCH: '${{BRANCH}}'
      SSH_KEY: '${{SSH_KEY}}'
      SPLIT_CHAR: '${{SPLIT_CHAR}}'
      CLONE_PATH: '${{CLONE_PATH}}'

  
github.com
Francisco Cocozza
Sep 18, 2019