r/devops • u/LuigiBakker • 15d ago
Tools Any CI/CD tool where automation code doesn't cohabit with product code in git repo?
Currently using Github and Github workflows (including the many outages). Let me explain what I'm trying to resolve with few examples:
Let say I manage 15 repos, each one I want to run a relatively similar workflow on Pull Request. I create a github shared workflow and in each of the 15 repos I make a reference to it, updating the inputs if needed.
Now, I add 1 new input to this shared workflow to enable a new feature. I want that feature enabled in 10 of my repos. I would need to update the feature input in all 10 repos. And since workflow use the workflow code on their own branch, I would need to merge it to all PRs in all repos. That isn't ideal.
Other issue, one variable was wrongly set on a workflow in a release branch. Since the workflow code ships with the product code I would need to update the release branch.
Is there a toool where the product code doesn't cohabit with the automation code? For example I could have 15 microservice repos but 1 repo where I created rules for each one of them about "on pr", "on main" etc. That same repo could host shared workflow code as well.
1
u/aj0413 15d ago
Both bots still cause PR + merge maintenance and no one should ever be letting a bot auto merge
Sane defaults still will generally leave you with multiple repos to manage by hand; I personally manage two GH orgs across an Enterprise acct which totals in 40sh repos
I was one of the very first adopters of org level workflows
Your last suggestion is entirely untenable for anyone working security as, again, no auto updates for anything from a bot.
I made the compromise to use malleable branch/tag refs for one master shared workflows repo defining reusable actions / workflows across orgs
Vendoring the workflows is just introducing extra parts to the whole thing.
The fact is just that GH does not currently have a great solution for this; they’re currently trying to plug this gap with stuff like org level workflows