gpt4 book ai didi

ubuntu - gitlab ssh runner 失败。怎么了?

转载 作者:行者123 更新时间:2023-12-04 18:42:52 26 4
gpt4 key购买 nike

我正在尝试使用 ssh runner 设置 gitlab ci/cd 管道。但是当我启动管道时,我有以下错误:
gitlab pipeline results
/etc/gitlab-runner/config.toml 如下:

concurrent = 1
check_interval = 0
log_level = "debug"

[session_server]
session_timeout = 1800

[[runners]]
name = "runner"
url = "https://gitlab.com/"
token = "XXXXXXXXXX"
executor = "ssh"
[runners.ssh]
host = "gitlab.com"
port = "22"
user = "gitlab-runner"
identity_file = "/home/gitlab-runner/.ssh/id_rsa"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
Runner 安装在 Ubuntu 20.04 下。我将不胜感激任何建议!提前谢谢你!

最佳答案

SSH executor是:

It makes GitLab Runner connect to an external server and runs the builds there.
We have some success stories from organizations using this executor, but usually we recommend using one of the other types.


考虑到它尝试连接到 gitlab.com,你的 SSH 执行器失败是有道理的本身,并在那里运行一些东西:这肯定是不可能的,因为 GitLab 只会回答 ssh 查询以用于 Git 存储库操作,而不是用于随机用户脚本。
一个 GitLab runner旨在安装在用户 Controller 服务器上(如 GitHub webhook 会),我为了被 GitLab 作业调用。

关于ubuntu - gitlab ssh runner 失败。怎么了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69136483/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com