【问题标题】:Running Gitlab CI behind custom authentication?在自定义身份验证之后运行 Gitlab CI?
【发布时间】:2015-12-08 15:48:17
【问题描述】:

我刚刚尝试使用 Gitlab 的 APT 存储库在我的 Debian 主机上安装 gitlab-ce。我拉出this example 并将其推送到我的主机,并配置了一个跑步者并得到以下错误:

gitlab-ci-multi-runner 0.7.2 (998cf5d)
Using Docker executor with image php:5.6 ...
Pulling docker image mysql:latest ...
Starting service mysql:latest ...
Waiting for services to be up and running...
Pulling docker image gitlab/gitlab-runner:service ...
Pulling docker image gitlab/gitlab-runner:cache ...
Pulling docker image gitlab/gitlab-runner:build ...
Pulling docker image php:5.6 ...

Running on runner-4d0395b6-project-2-concurrent-0 via gitlab...
Cloning repository...
Cloning into '/builds/d33tah/gitlab-ci-test'...
fatal: Authentication failed for 'https://gitlab-ci-token:xxxxxx@gitlab.somedomain.com/d33tah/gitlab-ci-test.git/'

ERROR: Build failed with: exit code 1

将跑步者指向http://localhost/ci 也无济于事。我是否必须删除我的 HTTPS 身份验证才能使该工具正常工作?

【问题讨论】:

  • 抱歉,您想做什么?您是对私有存储库使用基本 HTTP 身份验证,还是对 gitlab 实例使用 .htaccess 保护?据我所知,建议使用部署密钥作为机器或构建工具来访问存储库。除此之外,请添加您的 GL、GLCI 和 GLCIR 版本。

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


【解决方案1】:

我最终通过 SSL 托管网站,并确保 gitlab.somedomain.com 指向 localhost,因此 https://gitlab.somedomain.com 不需要本地身份验证。因为我还想要一个 Docker 运行器,所以我必须设置一个本地 DNS 服务器并让 Docker 使用它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-07-09
    • 2020-04-01
    • 2022-12-10
    • 2015-09-08
    • 2018-09-26
    • 2019-11-07
    • 2010-12-17
    • 2021-02-06
    相关资源
    最近更新 更多