欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

gitlab runner

程序员文章站 2022-06-11 19:05:31
...
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash

sudo yum install gitlab-ci-multi-runner

# 在root下执行
# 删除服务
gitlab-ci-multi-runner uninstall
# 添加服务
gitlab-ci-multi-runner install --working-directory /home/jack --user jack
# 重启服务
gitlab-ci-multi-runner restart
# 查看状态
gitlab-ci-multi-runner status
输出:gitlab-runner: Service is running!
# 查看是否生效
ps -ef | grep gitlab-runner
输出:root     17454     1  0 Mar23 ?        01:18:03 /usr/bin/gitlab-runner run --working-directory /home/jack --config /etc/gitlab-runner/config.toml --service gitlab-runner --syslog --user jack

转载于:https://my.oschina.net/suveng/blog/3093128