git-clone-ssh

clone git repositories via SSH.
Arguments
REMOTE_URL
- Reporitory SSH URL (e.g. `git@github.com:my-user/my-repo.git`)
BRANCH
- Branch name to checkout (e.g. `master`)
SSH_KEY
- Private SSH key to access the repository.
SPLIT_CHAR
- Split character you’ve used to replace newline in SSH key
CLONE_PATH
- Path where `git clone` is going to be executed. A "`repo-name`" directory will be created there
    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.comFrancisco CocozzaAug 21, 2019source