本地gitlab-runner的创建与注册

引言

之前通过一些方式在本地创建runner,时而会出现一些未知的坑,所以写下本文记录runner可以无坑创建的方式。

以下注册runner到相应仓库的前提是已经在本地安装了gitlab-runner 具体安装方式见官网

本地gitlab-runner安装常用的指令

  1. 查看gitlab runner服务状态

sudo gitlab-runner status

  1. 停止已运行的 GitLab Runner 服务

sudo gitlab-runner stop

  1. 启动 GitLab Runner 服务

sudo gitlab-runner start

  1. 页面添加好runner后未上线的话出现三角形灰色感叹号则运行下面指令检测新注册的runner通讯情况

gitlab-runner run

第一种注册方式

第二种注册方式



相关推荐
考虑考虑4 小时前
git中的tag
git·gitlab·github
Skilce2 天前
基于GitLab CI/CD + Kubernetes的自动化部署平台搭建
ci/cd·kubernetes·gitlab
行者-全栈开发2 天前
Jenkins 与 GitLab 深度集成实战:从 Webhook 到 Merge Request 全流程自动化
gitlab·jenkins·webhook·merge request·multibranch·source plugin·ci/cd 自动化
zoipuus4 天前
上传repo仓库到自己的gitlab
linux·gitlab·shell·全志·tina
刘马想放假5 天前
Git 从入门到进阶:一篇吃透版本管理的实战指南
git·gitlab
NexTunnel8 天前
公司老项目还在 SVN,远程维护怎么做更稳?
git·svn·gitlab·远程工作·nextunnel
想你依然心痛10 天前
持续集成在嵌入式开发中的实践:GitLab CI与交叉编译——自动化构建、固件生成
ci/cd·自动化·gitlab
Sean‘11 天前
GitLab 升级后 502:Puma 反复重启问题处理记录
docker·gateway·gitlab
NexTunnel11 天前
告别传统组网,也能安全访问公司 GitLab / SVN
安全·svn·gitlab
霸道流氓气质1 个月前
GitLab CI/CD 完全指南
linux·ci/cd·gitlab