Вот такая у меня ошибка.
Сюда добавил приватный ключ:
и сам gitlab-ci:
before_script:
- apt-get update -qq
- apt-get install -qq git
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- git rm --cached .gitlab-ci.yml
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
deploy_staging:
type: deploy
environment:
name: staging
url: 45.132.18.232
script:
- ssh -A root@45.132.18.232 -p 22 "cd /var/www/zverug.ga/public_html && git checkout master && git pull origin master && composer install && exit"
only:
- master