如何在与GitLab控制台相同的服务器上运行GitLab运行程序

时间:2020-01-21 19:39:48

标签: gitlab gitlab-ci gitlab-ci-runner

GitLab赛跑者似乎需要http或https才能注册“ gitlab-ci协调器”。但是,我想使用当前在同一服务器上安装的协调器。有没有办法将gitlab运行程序指向本地主机?甚至可以为协调员和跑步者使用同一台机器吗?

# gitlab-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
127.0.0.1
ERROR: Registering runner... error  runner=****** status=only http or https scheme supported
PANIC: Failed to register this runner. Perhaps you are having network problems

当我添加http / https时,错误有所不同:

# gitlab-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://127.0.0.1/

ERROR: Registering runner... failed   runner=-******* status=
couldn't execute POST against http://127.0.0.1/api/v4/runners: 
Post https://jenkins-master.org:443/api/v4/runners: x509: certificate signed by unknown authority
PANIC: Failed to register this runner. Perhaps you are having network problems

0 个答案:

没有答案