摘要
安装GitLab Runner
下载最新的Runner
1
| curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
|
安装Runner
1 2 3
| yum -y install gitlab-ci-multi-runner yum list gitlab-runner --showduplicates | sort -r yum install gitlab-runner-10.0.0-1
|
注册信息到gitlab
部分信息如图

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://192.168.1.83
Please enter the gitlab-ci token for this runner:
931qePwxjkeSX52Qhx3U
Please enter the gitlab-ci description for this runner:
[gitlab-server]: my-runner
Please enter the gitlab-ci tags for this runner (comma separated):
my-tag
Please enter the executor: docker, docker-ssh, parallels, shell, kubernetes, custom, ssh, virtualbox, docker+machine, docker-ssh+machine:
docker
Please enter the default Docker image (e.g. ruby:2.6): your-image alpine:latest
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
|
Runner就安装完了

配置CI/CD
在项目中新增.gitlab-ci.yml
文件

根据自己的需要进行修改或编写,具体使用方法不做介绍。
最终实现效果
