跳至主要內容

Gitlab的Runner机制

知识库运维技巧开发搭建GitLab小于 1 分钟

centos7 安装

########################
## runner官网:https://docs.gitlab.com/runner/install/bleeding-edge.html
## 下载地址:https://gitlab-runner-downloads.s3.amazonaws.com/latest/index.html
## runner源码:https://gitlab.com/gitlab-org/gitlab-runner
########################

#### 方法一:
# 添加yum源
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash
# 安装
yum install gitlab-ci-multi-runner
# 注册
gitlab-ci-multi-runner register \
  --url 'http://192.168.13.100:9091/' \
  --registration-token '82yjHfWPP8A-WdTxs4HW' \
  --executor 'shell' \
  --description "develop" \
  --non-interactive \
  --tag-list=maven,docker