runner安装和注册

#runner安装
yum  -y  install  docker
systemctl restart docker
wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
chmod a+x /usr/local/bin/gitlab-runner
useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
gitlab-runner start
gitlab-runner status
vim /etc/gitlab-runner/config.toml
    volumes = ["/var/run/docker.sock:/var/run/docker.sock","/cache"]
gitlab-runner register  --url https://glnkfc0cn17.parity.cash  --token glrt-6kYCqxKss-dd42ezzWTz

 

posted @ 2024-11-20 18:09  力王7314  阅读(2)  评论(0编辑  收藏  举报