Over a million developers have joined DZone.

Changing a GitLab Runner From ''Locked to a Project'' to Shared

DZone's Guide to

Changing a GitLab Runner From ''Locked to a Project'' to Shared

This quick tutorial will show you how to change a GitLab runner from ''locked'' so you can share it with another project.

· DevOps Zone ·
Free Resource

DevOps involves integrating development, testing, deployment and release cycles into a collaborative process. Learn more about the 4 steps to an effective DevSecOps infrastructure.

I have a GitLab Runner assigned to a project that I'd like to share with another similar project. Currently, it looks like this:

Pressing the small edit icon, I can see these options:

I want to reuse this same runner, so I unchecked the 'Lock to current projects' checkbox.

Now if I go to the CI/CD settings for my other project I can see it is available, so I click "enable for this project":

Now, my Pending Job that was triggered after my first push to my repo has kicked in and is being deployed to my test Docker server. Cool.

Read the 4-part DevOps testing eBook to learn how to detect problems earlier in your DevOps testing processes.

devops ,gitlab ,tutorial ,version control

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}