docker - 警告:检查作业...在 gitlab-runner 中的 docker 执行器中失败
问题描述
我正在尝试使用 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 server: 12.10.0-pre 我在服务器上有我的跑步者,如下所示:
我正在运行命令: gitlab-runner run -c ./config.toml
我在这里错过了什么?
解决方案
您的跑步者无法检查工作。您可以仔细检查端点 URL 吗?
如果您的存储库位于 gitlab.com,您应该使用端点https://gitlab.com/
在 GitLab Web UI 中,转到Settings -> CI/CD -> Runners -> Set up a specific Runner手动
您将看到端点 URL 和注册跑步者所需的令牌。
我在https://gitpitch.com/atsaloli/cicd/master?grs=gitlab#/41的 GitLab CI 教程中对此进行了介绍(加载需要几秒钟)
让我知道这是否有帮助?
推荐阅读
- python - 如果匹配另一个列表中的值,则提取字符串
- c# - 单例 OR 静态类,有利于 Logging 实现
- reactjs - Heroku 路由:我可以路由到内部目录吗?
- c# - 将千位分隔符和美元符号添加到 DataGrid 列 WPF
- javascript - 按数组内的对象键过滤
- html - 无法让列在我的表中排列
- python - `pip install flask_mysqldb` 由于 clang 失败:错误:链接器命令失败,退出代码为 1
- sql - 名字和姓氏 SQL Server 的唯一索引
- sqlite - 数据文件夹未在 android 设备监视器 API 19 中打开
- javascript - 用于 GZIP 的 Javascript(浏览器)解压缩器