安装gitlab runner

本机安装

之所以要本机安装,是因为要测试方便, 当然也能安装docker版本的。

参考: - https://docs.gitlab.com/runner/install/

# 本机安装

参考:
- https://docs.gitlab.com/runner/install/linux-repository.html

wget https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh
chmod +x script.deb.sh

# 我是deeepin操作系统,脚本无法识别,需要手工指定

sudo os=debian dist=buster ./script.deb.sh

sudo apt-get install gitlab-runner

gitlab-runner --h
NAME:
   gitlab-runner - a GitLab Runner

USAGE:
   gitlab-runner [global options] command [command options] [arguments...]

VERSION:
   14.6.0 (5316d4ac)

AUTHOR:
   GitLab Inc. <support@gitlab.com>

注册runner

参考:

参考