我试图在我的机器上运行本地GitLab运行器。每当向某个repo推送时,就会运行docker映像,并在容器内运行一堆命令来测试代码。所以我在我的机器上设置了一个GitLab运行器,当构建被触发时,我一直在GitLab中得到这个错误信息:
fatal: unable to access 'https://git.donkey.com/core/cow.git/': Could not resolve host: git.donkey.com
Cleaning up file based variables
ERROR: Job failed: exit code 128
我以以下方式设置了我的跑步器配置:
[[runners]]
name = "cow"
url = "https://git.donkey.com/"
token = "RANDOMKEY"
executor = "docker-windows"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "donkey-images.artifactory.donkey.com/donkey-builder-images:chicken-4.0.0"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["c:\cache"]
shm_size = 0
我不知道这里发生了什么事。我尝试了各种建议,例如添加clone_url
,extra_host
和dns
,但无济于事。有人经历过类似的事情吗?
感谢明白了。我只需要将我的IP地址添加到dns
和dns_search
。