Skip to main content

Configuration

Configure your cloud-runner for your environment.

Disabling Shared Runners in GitLab

To make the most of Cloud-Runner, you may need to disable GitLab's default shared runners. Follow these steps:

  1. Access GitLab: Use your GitLab account details to access your GitLab instance.
  2. Access Settings:
    • In the top right corner of the GitLab interface, click on your user icon.
    • Choose "Settings" from the dropdown menu.
  3. Navigate to CI/CD Settings:
    • Select "CI/CD" from the menu on the left-hand side of the Settings screen.
  4. Disable Shared Runners:
    • Scroll down to the "Runners" section on the CI/CD page.
    • To turn off the shared runners in GitLab, click the "Enable shared runners for this project" option to uncheck it.
  5. Save Changes:
    • Click the "Save changes" button to save the adjustments.

Associating a Runner with Multiple Projects

If you need to use a single runner for multiple GitLab projects, follow these steps to streamline your CI/CD workflows and manage resources efficiently:

  1. Ensure Proper Access:
    • Be the owner or maintainer of Project A and Project B.
  2. Add Runner to Project A:
    • Follow the GitLab documentation to register and configure the runner for Project A.
  3. Navigate to Runner Settings of Project A:
    • Go to Settings > CI/CD > Runner Settings of Project A.
  4. Edit Runner Properties:
    • Locate the desired runner in the Runner Settings.
    • Click on the Edit button to modify its properties.
  5. Unlock Runner for Multiple Projects:
    • In the runner's properties, uncheck the "Lock to current projects" box.
  6. Save Changes:
    • Save the changes to update the runner's settings.
  7. Enable Runner for Project B:
    • Go to Project B and enable the runner to associate it with Project B.

Repeat these steps for any additional projects you wish to associate with the runner. Ensure that the runner's resources are suitable for handling multiple projects simultaneously.