Building GitLab CI on multiple runners

My question is relatively simple

I have gitlab setup, gitlab CI and two separate servers, each of which has its own runner. Both runners work and can successfully complete the assembly.

Now I want one project to be created by both runners, and even with individual teams. The last thing that is not possible, however, if I add both runners to the project, it apparently relies on one of them and not the other.

Is it possible to build it on both and possibly even change the scripts?

+6
source share
1 answer

Someone talked about this on the GitLab CI controller ( https://gitlab.com/gitlab-org/gitlab-ci/issues/237 ). The workaround suggested here is as follows:

Create several tasks with different tags and assign different tags to these participants: job1: script: echo 1 tags: - runner1 job2: script: echo 2 tags: - runner2

Not a great solution, especially if you want to run the same job on a bunch of runners (like me), but it can be done to work.

0
source

Source: https://habr.com/ru/post/955696/


All Articles