Cloning another project in .gitlab_ci.yml

Cloning another project in .gitlab_ci.yml

  1. Generate a ssh key pair.

  2. Add the private key to the project’s secret variable with a key, “SSH_PRIVATE_KEY.”

  3. Write the yml file as below. 1)https://docs.gitlab.com/ce/ci/ssh_keys/README.html#ssh-keys-when-using-the-docker-executor2)https://gitlab.com/gitlab-org/gitlab-ce/issues/4194

References   [ + ]

1. https://docs.gitlab.com/ce/ci/ssh_keys/README.html#ssh-keys-when-using-the-docker-executor
2. https://gitlab.com/gitlab-org/gitlab-ce/issues/4194

Leave a Reply