gitlab-ci: protect specific stages of a pipeline

Viewed 17

This might be a newbie question but I've a use-case where I am trying to build four stages in a pipeline, associated with a repository:

  • Validate
  • Register
  • Update
  • Retrieve

What I want to do is restrict access to the Register and Update stage of the pipeline, i.e. only certain members or group(s) will have access to invoke this stage.

Unfortunately, I couldn't find a mechanism to do it. The closest that I got is using protected environments but I as far as I understand they are targeted towards deployment jobs (irrespective of the branch).

I would appreciate if someone can help guide me towards designing it the right way. Thanks!

0 Answers
Related