[英]maven:latest image from gitlab-runner with docker executer “Failed to connect to gitlab Connection refused” using docker-compose
[英]WARNING: Checking for jobs… failed in docker executer in gitlab-runner
我正在尝试使用 docker 执行器在本地运行上运行 gitlab-ci 这是 config.toml
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
listen_address = "0.0.0.0:8093"
[[runners]]
url = "https://gitlab.com/<ACCOUNT>/my-static-website"
token = XXXXXX
executor = "docker"
builds_dir = ""
clone_url = "https://gitlab.com/<ACCOUNT>/my-static-website.git"
[runners.docker]
tls_verify = false
image = "docker:latest"
privileged = true
disable_cache = false
volumes = ["/cache"]
[runners.cache]
Insecure = false
我的.gitlab-ci.yml:
image: node
stages:
- build
- test
build website:
stage: build
script:
- npm install
- npm install -g gatsby-cli
- gatsby build
artifacts:
paths:
- ./public
tags:
- trials
test artifacts:
image: alpine
stage: test
script:
- grep -q "Gatsby" ./public/index.html
这是我得到的错误:
Runtime platform arch=amd64 os=linux
pid=28815 revision=4c96e5ad version=12.9.0
Starting multi-runner from ./config.toml... builds=0
Running in system-mode.
Configuration loaded builds=0
listen_address not defined, metrics & debug endpoints disabled builds=0
Session server listening address=0.0.0.0:8093
builds=0
WARNING: Checking for jobs... failed runner=kYtFEV-i
status=404 Not Found
WARNING: Checking for jobs... failed runner=kYtFEV-i
status=404 Not Found
WARNING: Checking for jobs... failed runner=kYtFEV-i
status=404 Not Found
我正在使用 gitlab-runner 版本 12.9 和 gitlab 服务器:12.10.0-pre 我在服务器上有我的跑步者,如下所示:
我正在运行命令: gitlab-runner run -c./config.toml
我在这里错过了什么?
您的跑步者无法检查工作。 您可以仔细检查端点 URL 吗?
如果您的存储库位于 gitlab.com 上,您应该使用端点https://gitlab.com/
在您的 GitLab Web UI 中,go 到Settings -> CI/CD -> Runners -> Set up a specific Runner手动
您将看到端点 URL 和注册跑步者所需的令牌。
我在https://gitpitch.com/atsaloli/cicd/master?grs=gitlab#/41的 GitLab CI 教程中对此进行了介绍(加载需要几秒钟)
让我知道这是否有帮助?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.