Run GitLab CI Jobs on a Specific Runner

I have two runners in my project. One is on Microsoft Azure for Azure deployments, and the other is on DigitalOcean for its deployments. Today, I realized that all of my jobs are being handled by the Azure runner, causing our tests to take too much time due to significant network delay when connecting to the database across data centers. Therefore, I needed to configure specific jobs to run on designated runners. Here, I’ll explain how to do that. ...

October 31, 2024 · 2 min · Hamid