Please enter the executor:parallels,docker+machine,ssh,virtualbox,docker-ssh+machine,kubernetes,docker,docker-ssh,shell:>>>>>>选择runner的类型(根据你的需求选择,我选择的shell,我的项目是node项目) Runner registered successfully.Feel
The Shell executor is a simple executor that you use to execute builds locally on the machine where GitLab Runner is installed. It supports all systems on which the Runner can be installed. That means that it’s possible to use scripts generated for Bash, PowerShell Core, Windows PowerShell...
docker executor $ cat config.toml ... [[runners]] environment = ["DOCKER_AUTH_CONFIG={\"auths\":{\"registry.xxx.com\":{\&q
If you want your CI/CD job to run commands in a custom Docker container, you might install GitLab Runner on a Linux server and register a runner that uses the Docker executor. These are only a few of the possible configurations. You can install GitLab Runner on a virtual machine and ha...
--executor docker \ --docker-image "docker:20.10.16" \ --docker-privileged \ # privileged mode --other arguments 接下来,可以选择任一种方式实现 Docker-in-Docker: 在config.toml中增加卷映射volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"]。
目前可選用的 Executor 如下: Shell:即是 Runner 直接在自己的 Local 環境執行 CI Job,因此如果你的 CI Job 要執行各種指令,例如 make、npm、composer⋯⋯,則需要事先確定在此 Runner 的 Local 環境是否已具備執行 CI Job 所需的一切相依程式與套件。
所谓executor就是执行者的意思,即gitlab-runner执行任务时候的具体承载媒介,我们的gitlab上可能会有很多项目,不同项目会使用不同语言开发,不可能把构建所有项目用到的环境都配置在gitlab-runner运行的机器之上,所以才会有executor。 gitlab-runner executor的类型以及每种类型的适用范围可以在官方文档上查看https://docs...
value: kubernetes tags: k8s runners: config: | [[runners]] executor = "kubernetes" ...
[runners]]name="my first runner"## Runner名称;url="http://192.168.1.200/"## GitLab Server地址;token="z6QEqyGpDrvzNgfxLiVh"## Runner token;executor="shell"## Runner的执行器;[runners.custom_build_dir]## 允许用户为作业定义自定义构建目录;[runners.cache]## 分布式缓存目录;[runners.cache....
crt --url https://your-gitlab-url --token your-runner-token --executor shell --shell powershell 请将上述命令中的https://your-gitlab-url替换为你的GitLab地址,your-runner-token替换为你在步骤2中获取的Token信息。 配置Runner的Shell选项。在命令提示符(CMD)或PowerShell中执行以下命令,修改Runner的...