简体   繁体   English

GitLab运行器配置

[英]GitLab runner configuration

I am using standard GitLab runner. 我正在使用标准的GitLab运行器。

I need to determinate updates of master branch and updates of development branch. 我需要确定主分支的更新和开发分支的更新。 Beacause I want to copy master branch to production server and dev branch to test-server. 因为我想将master分支复制到生产服务器,将dev分支复制到测试服务器。

But I have only one .gitlab-ci.yml file which starting after 'git push'. 但是我只有一个.gitlab-ci.yml文件,它在'git push'之后开始。

If I am register second runner. 如果我要注册第二名。 it is also controller by .gitlab-ci.yml 它也是.gitlab-ci.yml的控制器

What to do? 该怎么办?

In gitlab ci config file, we have the only option allowing to trigger a job only from a specified branch. 在gitlab ci配置文件中,我们拥有唯一的选项,该选项仅允许从指定的分支触发作业。

Doc at docs.gitlab.com/ce/ci/yaml/README.html#only-and-except docs.gitlab.com/ce/ci/yaml/README.html#only-and-except上的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM