## 下载安装包
curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/rpm/gitlab-runner_amd64.rpm"
## 安装
rpm -Uvh gitlab-runner_amd64.rpm
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"
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"
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