centos上安装gitlab runner 并注册shell执行器的 runner
【摘要】
下载安装包
## 下载安装包
curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/rpm/gitlab-runner_a...
下载安装包
## 下载安装包
curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/rpm/gitlab-runner_amd64.rpm"
- 1
- 2
- 3
- 4
安装
## 安装
rpm -Uvh gitlab-runner_amd64.rpm
- 1
- 2
- 3
注册 docker执行器的runner
sudo gitlab-runner register \
--non-interactive \
--url "https://gitlab.com/" \
--registration-token "L4fdFzSzJtkmWQQjr4Yy" \
--executor "docker" \
--docker-image alpine:latest \
--description "docker-runner" \
--tag-list "docker,aws" \
--run-untagged="true" \
--locked="false" \
--access-level="not_protected"
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
注册 shell执行器的runner
sudo gitlab-runner register \
--non-interactive \
--url "https://gitlab.com/" \
--registration-token "L4fdFzSzJtkmWQQjr4Yy" \
--executor "shell" \
--docker-image alpine:latest \
--description "docker-runner" \
--tag-list "shell,120" \
--run-untagged="true" \
--locked="false" \
--access-level="not_protected"
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
runner 的配置文件 config.toml
存放在
/etc/gitlab-runner/
on *nix systems when GitLab Runner is executed as root (this is also the path for service configuration)
~/.gitlab-runner/
on *nix systems when GitLab Runner is executed as non-root
./
on other systems
文章来源: fizzz.blog.csdn.net,作者:拿我格子衫来,版权归原作者所有,如需转载,请联系作者。
原文链接:fizzz.blog.csdn.net/article/details/117961349
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)