linux系统安装Gitlab-runner教程

  • Debian/Ubuntu系统

首先信任 GitLab 的 GPG 公钥:

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

debian8

deb http://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/debian jessie main

debian9

deb http://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/debian stretch main

debian10

deb http://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/debian buster main

更新软件仓库并安装

apt-get update && apt-get install gitlab-runner

  • CentOS/RHEL系统

vim /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 clean all

yum makecache

yum -y install gitlab-runner

你可能感兴趣的:(gitlab,linux,gitlab,debian)