ubuntu安装注册gitlab_runner

1.添加GitLab的官方资料库

curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash

2.安装 gitlab-ci-multi-runner

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

3.注册

gitlab-ci-multi-runner register
然后按照提示输入要出册的gitlab_ci的url和token。以及该runner的用途和宿主机地址

4.启动runner

gitlab-ci-multi-runner run
这样就可以把runner运行起来,也可以运行gitlab-ci-multi-runner run-single –help来查看命令详情

你可能感兴趣的:(随笔笔记)