gitlab-runner ---CI
gitlab-runner:
https://segmentfault.com/a/1190000007180257
https://mp.weixin.qq.com/s?__biz=MjM5MTA1MjAxMQ==&mid=2651227441&idx=1&sn=183035f3b15af8ddb071d7e081c4a485&chksm=bd495cb58a3ed5a3291b5d8f3587309c84b33ba29bf63a172e5c0d41c52dff348bfa5e49492a&mpshare=1&scene=1&srcid=1215fwio83KcVNvv2zwXAyZm&pass_ticket=vHZ1YOnRFpaKEnflhc2HmSIKA6mfjZvrwfLQzYcrcM5nYt2EK4BGPQsX7alIiDAj#rd
gitlab --version
https://your.domain.name/help
http://www.jianshu.com/p/2b43151fb92e
https://docs.gitlab.com/runner/install/linux-repository.html
http://blog.csdn.net/rainbow702/article/details/69396490?utm_source=itdadao&utm_medium=referral
yum install gitlab-ci-multi-runner-1.10.7-1
可以对项目的构建进行详细配置,比如构建的时间表及需要 CI 进行持续集成的分支等,这里配置了 对master和develop分支进行持续集成。
配置一个 Runner
GitLab CI 中,runner 是一个隔离的虚拟机器,用来配合 Gitlab CI 进行构建。
安装 GitLab-Runner
安装gitlab-ci-multi-runner
环境:centos 7, 使用了清华大学的镜像
新建 gitlab-ci-multi-runner.repo
touch /etc/yum.repos.d/gitlab-ci-multi-runner.repo
将以下内容写入文件
[gitlab-ci-multi-runner]
name=gitlab-ci-multi-runner
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ci-multi-runner/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
执行
sudo yum makecache
sudo yum install gitlab-ci-multi-runner
其他系统安装
https://docs.gitlab.com/runner/install/
Gitlab CI Multi Runner 国内镜像
https://mirrors.tuna.tsinghua.edu.cn/help/gitlab-ci-multi-runner/