I have CI configured so that it triggers the pipeline when I apply a tag to a commit in the production branch. When the tag is applied the job in the pipeline is initiated then stuck with this message:
“This job is stuck because you don’t have any active runners online with any of these tags assigned to them: deploy_prod”
But what I notice, is that your .gitlab-yml does not use the deploy_prod tag at all. Rather it uses the do_it tag. What will happen if you remove deploy_prod tag from the runner’s definition?
Sorry, my error in documenting the issue. Originally, it was using deploy_prod in the .gitlab-yml and complaining that no active runners were online with that tag assigned. As a test, I added the do_it tag and updated the yml file accordingly (hoping that if I was firm it would work).
I have just tested this again, using a different project in the same group, with the yml file shown below, and the same error message that was previously documented.
Ensure enable group runners is also selected. I had all of my tagged runners go offline and for whatever reason, this checkbox was unchecked the next time I looked.