I created a .gitlab-ci.yml file. the project is already in the remote server. I created gitlab-runner in my remote server and I chose the shell option. my file .gitlab-ci.yml just makes the update for the project i.e. (we will do "git pull origin master" and here is my .gitlab-ci.yml script
stages:
- build
before_script:
- cd/home/devops/projects/my-project
building:
stage: build
script:
- git status
- sudo git pull origin master
when I run the pipeline i get this error.
$git pull origin master.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. "
please how could we solve this problem? I'm really stuck with this problem
thank you so much