I've got a repo that is dependent upon some other repos.
I'm trying to clone the secondary repo onto a Windows box using gitlab-runner.
My gitlab-ci.yml
looks like this:
# Deploy to a staging server
deploy_staging:
stage: deploy
tags:
- my_gitlab_runner
script:
- echo "Deploy to staging server"
- cd C:/
- git clone git@gitlab.com:test_group/test_ci
environment:
name: staging
url: https://127.0.0.1
only:
- master
If I log into the windows box - I can use git bash to clone down repos manually (I've setup my ssh settings in C:/Users/myusername/.ssh
)
My .ssh config looks like this:
Host gitlab.com
Hostname altssh.gitlab.com
user git
Port 443
PreferredAuthentications publickey
IdentityFile C:/git_keys/my_gitlab_rsa
I have to use port 443 - and it works when doing it through gitbash without issue.
The job continually fails with this error:
Cloning into 'test_ci'...
Host key verification failed.
fatal: Could not read from remote repository.
I've added my my_gitlab_rsa.pub
to the repo as a deploy_key - and it works for cloning locally - just not through the gitlab-runner.
My config.toml for the gitlab-runner looks like this:
[[runners]]
name = "TestDesktop"
url = "https://gitlab.com"
token = "_yt...32fjJb"
tls-ca-file = "C:/my_certs/my_self_signed_ca.pem"
executor = "shell"
shell = "cmd"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
Any ideas?