Gitlab注冊Runner


1.先啟動Gitlab,然后登陸進去,找到項目設置界面

2.部署Runner
這里采用docker安裝的方式,也可以采用其他方式安裝

# 創建docker鏡像使用的數據卷
{20-07-16 16:28}InternalServer:~ root# docker volume create gitlab-runner-config
gitlab-runner-config
# 拉取並運行docker鏡像,運行容器並開始注冊
{20-07-16 16:29}InternalServer:~ root# docker run -d -it -v gitlab-runner-config:/etc/gitlab-runner gitlab/gitlab-runner:latest register
Runtime platform                                    arch=amd64 os=linux pid=7 revision=6fbc7474 version=13.1.1
Running in system-mode.                            
                                                   
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): # 輸入gitlab地址,上面圖片中有
http://192.168.0.253:81/
Please enter the gitlab-ci token for this runner: # 輸入gitlab上的token,上面圖片中有
q86sGA5ekFseiyCNC2Ny
Please enter the gitlab-ci description for this runner: # 輸入一段介紹
[f52d5d7d0252]: 192.168.0.253-gitlab
Please enter the gitlab-ci tags for this runner (comma separated): # 標簽
tag
Registering runner... succeeded                     runner=q86sGA5e
Please enter the executor: custom, docker-ssh, shell, ssh, kubernetes, docker, parallels, virtualbox, docker+machine, docker-ssh+machine: # 輸入命令執行方式
shell
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! 

效果

Runner地址

官方安裝地址:https://docs.gitlab.com/runner/install/
官方注冊地址:https://docs.gitlab.com/runner/register/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM