gitlab-runner注册runner

安装gitlab、gitlab-runner见安装

  1. Run the following command
sudo gitlab-runner register
  1. Enter your GitLab instance URL
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
https://gitlab.com
  1. Enter the token you obtained to register the Runner
Please enter the gitlab-ci token for this runner
xxx
  1. Enter a description for the Runner, you can change this later in GitLab's UI
Please enter the gitlab-ci description for this runner
[hostame] my-runner
  1. Enter the tags associated with the Runner, you can change this later in GitLab's UI
Please enter the gitlab-ci tags for this runner (comma separated):
my-tag,another-tag
  1. Choose whether the Runner should pick up jobs that do not have tags, you can change this later in GitLab's UI (defaults to false)
Whether to run untagged jobs [true/false]:
[false] true
  1. Choose whether to lock the Runner to the current project, you can change this later in GitLab's UI. Useful when the Runner is specific (defaults to true)
Whether to lock Runner to current project [true/false]:
[true] true
  1. Enter the Runner executor
Please enter the executor: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell:
docker
  1. If you chose Docker as your executor, you'll be asked for the default image to be used for projects that do not define one in .gitlab-ci.yml
Please enter the Docker image (eg. ruby:2.1):
alpine:latest

学习自原文档

转载于:https://my.oschina.net/u/3656540/blog/1797268

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值