Gitlab CI Multi Runner 镜像使用帮助

注意: 注意: gitlab-ci-multi-runner 镜像仅支持 x86-64 架构,如果你需要安装版本 10 及以上的 Runner,由于官方名称发生变化,请前往 /help/gitlab-runner/。

Debian/Ubuntu 用户

首先信任 GitLab 的 GPG 公钥:

curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null

再选择你的 Debian/Ubuntu 版本,文本框中内容写进 /etc/apt/sources.list.d/gitlab-ci-multi-runner.list

Debian 7 wheezy

deb http://mirrors.cloudt.tencent.com/gitlab-ci-multi-runner/debian wheezy main

Debian 8 jessie

deb http://mirrors.cloudt.tencent.com/gitlab-ci-multi-runner/debian jessie main

Debian 9 stretch

deb http://mirrors.cloudt.tencent.com/gitlab-ci-multi-runner/debian stretch main

Ubuntu 14.0.4 LTS

deb https://mirrors.cloudt.tencent.com/gitlab-ci-multi-runner/ubuntu trusty main

Ubuntu 16.0.4 LTS

deb https://mirrors.cloudt.tencent.com/gitlab-ci-multi-runner/ubuntu xenial main

安装 gitlab-ce:

sudo apt-get update
sudo apt-get install gitlab-ci-multi-runner

RHEL/CentOS 用户

新建 /etc/yum.repos.d/gitlab-ci-multi-runner.repo,内容为

[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.cloudt.tencent.com/gitlab-ci-multi-runner/yum/el$releasever/
gpgcheck=0
enabled=1

再执行

sudo yum makecache
sudo yum install gitlab-ci-multi-runner