收录范围
gitlab-runner 镜像支持 x86-64 和 ARM64(aarch64) 架构。
Debian/Ubuntu 用户
首先下载 GitLab 的 GPG 公钥:
curl -L https://packages.gitlab.com/runner/gitlab-runner/gpgkey | gpg --dearmor -o /usr/share/keyrings/gitlab-runner.gpg
再选择你的 Debian/Ubuntu 版本,将下方内容写入 /etc/apt/sources.list.d/gitlab-runner.list
操作系统版本
Debian 12 (bookworm)
deb [signed-by=/usr/share/keyrings/gitlab-runner.gpg] https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/debian bookworm main
安装 gitlab-runner:
apt-get update
apt-get install gitlab-runner
CentOS/RHEL
新建 /etc/yum.repos.d/gitlab-runner.repo,内容为
[gitlab-runner]
name=gitlab-runner
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/yum/el$releasever-$basearch/
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
再执行
yum makecache
yum install gitlab-runner
评论