What is the best practice for having CI/CD Pipelines set up with multiple users?
I have a set up with 2 users - only one of which has been validated to use the GitLab Runners (but currently doesn’t have access to the
main branch of the repo that I’m setting up the Pipeline for; lets call that user User 1 (
User 2 (
U2) wants to deploy code from a feature branch, and is currently allowed to merge to
main , but isn’t validated and can’t use the Runners.
I think the right way to do this is to allow
U1 access to the
main branch, and then:
U2creates feature branch off of
main, makes code changes
U2pushes changes and creates a Merge Request to merge changes from the feature branch back in to
U1is notified that
U2has a created a Merge Request, and after review,
U1merges the changes into the
- The merging of the changes into the
mainbranch kicks off a Pipeline, and using the GitLab Runner, GitLab deploys code to the servers
Thanks for any insights!