您的位置:首页 > 运维架构 > Linux

国内centos7服务下快速安装 gitlab-runner

2020-06-29 17:09 441 查看

钉钉、微博极速扩容黑科技,点击观看阿里云弹性计算年度发布会!>>>

安装

1.添加yum源
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash
2.安装runner
yum install gitlab-ci-multi-runner
3.向GitLab-CI注册runner
gitlab-ci-multi-runner register

说明:

注册需要:GitLab-CI的url和注册token
位置在项目的setting里面(位置和名字不同的gitlab版本可能有差异)

注册时是会有提示


b.Enter your GitLab instance URL:
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
你的gitlab地址
c.Enter the token you obtained to register the Runner:
Please enter the gitlab-ci token for this runner
你的token
d.Enter a description for the Runner, you can change this later in GitLab's UI:
Please enter the gitlab-ci description for this runner
[hostame] my-runner
e.Enter the tags associated with the Runner, you can change this later in GitLab's UI:
Please enter the gitlab-ci tags for this runner (comma separated):
tag 可以不写
f.Enter the Runner executor:
Please enter the executor: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell:
shell
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  gitlab runner centos