When setting up Gitlab CI pipelines, the private key should be in a file and not a variable.
Here is the link to the documentation: https://docs.gitlab.com/ci/jobs/ssh_keys/
if getting any errors, here is the link to the documentation if getting libcrypto error: https://docs.gitlab.com/ci/jobs/ssh_keys/#error-loading-key-buildspathssh_private_key-error-in-libcrypto-message
Leave a comment