Gitlab runner 설치
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
sudo yum install gitlab-runner
Gitlab runner 등록
sudo gitlab-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): |
Please enter the gitlab-ci token for this runner: |
Gitlab CI/CD settings > Runner 에 적힌 토큰을 적어줍니다. |
Please enter the gitlab-ci description for this runner: |
설명 내용을 적어줍니다. |
Please enter the gitlab-ci tags for this runner (comma separated): |
태그를 적어줍니다.(gitlab-ci.yml 에 tag와 동일함) |
Registering runner... succeeded runner= |
Please enter the executor: parallels, shell, docker-ssh+machine, kubernetes, custom, docker-ssh, virtualbox, docker+machine, docker, ssh: |
shell |
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! |
참고사이트
docs.gitlab.com/runner/install/linux-repository.html
Install GitLab Runner using the official GitLab repositories | GitLab
Install GitLab Runner using the official GitLab repositories We provide packages for the currently supported versions of Debian, Ubuntu, Mint, RHEL, Fedora, and CentOS. Distribution Version End of Life date Debian jessie June 2020 Debian stretch approx. 20
docs.gitlab.com
https://docs.gitlab.com/runner/register/index.html
Registering Runners | GitLab
Registering Runners Registering a Runner is the process that binds the Runner with a GitLab instance. Requirements Before registering a Runner, you need to first: Install it on a server separate than where GitLab is installed on Obtain a token for a shared
docs.gitlab.com
'gitlab' 카테고리의 다른 글
[gitlab]gitlab-runner 가 느려졌을 경우 대처방법 (0) | 2021.04.08 |
---|---|
[gitlab].gitlab-ci.yml 설정 (0) | 2020.07.06 |