GitLab Runner 软件仓库

收录范围

gitlab-runner 镜像支持 x86-64 和 ARM64(aarch64) 架构。

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-runner.list

deb {{endpoint}}/{{os}} {{release}} main

安装 gitlab-runner:

{{sudo}}apt-get update
{{sudo}}apt-get install gitlab-runner

CentOS/RHEL

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

[gitlab-runner]
name=gitlab-runner
baseurl={{endpoint}}/yum/el$releasever-$basearch/
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key

再执行

{{sudo}}yum makecache
{{sudo}}yum install gitlab-runner