微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何添加 GitLab Runner

如何解决如何添加 GitLab Runner

我在我的服务器上上传 GitLab,现在我想添加 GitLab Runner 但是当我尝试添加时出现错误

ERROR: Registering runner... Failed    runner=zcy-FDTo status=Couldn't execute POST against https://gitlab.mysite.com/api/v4/runners: Post https://gitlab.mysite.com/api/v4/runners: x509: certificate signed by unkNown authority
    PANIC: Failed to register the runner. You may be having network problems.

什么问题?我试试

sudo gitlab-runner register --url https://gitlab.mysite.com/ --registration-token -AMfssacrqy_UeFM4i9pb--

解决方法

我刚刚开始学习 Gitlab Runner 并偶然发现了您的问题。 根据 Gitab Runner troubleshooting guide,我建议检查您的主机网络连接和证书设置,因为您的错误(x509:由未知机构签名的证书)表明。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。