gitlab技巧

Gitlab如何安装gitlab-runner?

官方文档:
https://docs.gitlab.com/runner/install/linux-repository.html

通过文档查看,centos7的情况下,先添加rpm源:
curl -s https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash

查看可以支持的版本:
yum list gitlab-runner –showduplicates | sort -r

在配置yum源的时候建议将runner_gitlab-runner.repo参数gpgcheck值设置为0
安装想要的版本:
yum install gitlab-runner-10.8.2-1
chmod +x /usr/local/bin/gitlab-runner
useradd –comment ‘GitLab Runner’ –create-home gitlab-runner –shell /bin/bash
gitlab-runner install –user=gitlab-runner –working-directory=/home/gitlab-runner

京ICP备11047313号-21