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.
Join the DZone community and get the full member experience.Join For Free
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.
Published at DZone with permission of Kevin Hooke, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.