2022. 11. 7. 18:30
728x90

curl 설치

$ sudo apt install curl

gitlab-runner 다운로드

$ curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb"

gitlab-runner 설치

$ sudo apt install ./gitlab-runner_amd64.deb

gitlab-runner 등록

$ sudo gitlab-runner register
Enter the GitLab instance URL (for example, https://gitlab.com/):
https://gitlab_url/
Enter the registration token:
xxxxxxxxxxxxxxxxxxxxxx
Enter a description for the runner:
예) gitlab-runner #1, long run test server, ...
Enter optional maintenance note for the runner:
xxxx
Enter an executor: docker-ssh+machine, custom, docker-ssh, parallels, shell, ssh, docker, virtualbox, docker+machine, instance, kubernetes:
docker 등 선택

Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!

Configuration (with the authentication token) was saved in "/etc/gitlab-runner/config.toml"
728x90
복사했습니다!