docker exec -it gitlab cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
11.1.14
安装gitlab-runner
docker安装方式
1 查看gitlab版本
docker exec -it gitlab cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
2 安装 runner
docker run -itd -v /data/devops/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner:v11.1.0
3 进入容器里面
docker exec -it d35956ecdd17 bash
4 运行gitlab-runner -h
gitlab-runner注册
注册步骤:
· 获取runner token ->进行注册
GitLabRunner类型
. shared :运行整个平台项目的作业(gitlab)
. group:运行特定group下的所有项目的作业(group)
. specific:运行指定的项目作业(project)
. locked:无法运行项目作业
. paused:不会运行作业
shared类型
项目类型
ssQnNL2poyrajsTcsJys
标签:group,exec,runner,gitlab,作业,docker
From: https://www.cnblogs.com/shiding/p/17346957.html