fox_12
@fox_12
Расставляю биты, управляю заряженными частицами

Проблема с gitlab-runner?

Создаю .gitlab-ci.yml
Прописываю в нем примерно подобное:

stages:
    - deploy_remote_prod

deploy_remote_prod:
   stage: deploy_remote_prod
   only:
      - master
   tags:
      - my-production-runner
   script:
      - ssh -i /srv/gitlab-runner/config/keys/some.key gituser@example.com '<run some command> || true'


Для репозитория использую ssh-runner
Коммичу - получаю результат:

Running with gitlab-runner 10.7.2 (b5e03c94)
  on dev runner 076f0431
Using SSH executor...
Running on dev_server_someserver via 14b41f4da93f...
Cloning repository...
Cloning into 'builds/076f0431/0/user/SomeRepo'...
remote: You are not allowed to download code from this project.
fatal: unable to access 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.myserver.com/user/SomeRepo.git/': The requested URL returned error: 403
ERROR: Job failed: Process exited with: 1. Reason was:  ()


Во-первых - откуда он берет этот урл?
http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab...
если мне надо к примеру чтобы раннер брал с git://git@gitlab.myserver.com:user/SomeRepo.git ?

Во-вторых - куда ему прописать ключ, чтобы раннер стягивал себе билд без проблем?
  • Вопрос задан
  • 1872 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы