I have a problem in my workflow.
I have 2 Git Branch: dev, prod
I use codepipeline to automatically publish in his respective server content when code is pushed to git
So, if I push to dev, dev server automatically update.
Now, I have a conceptual problem.
All my team is committing to dev, so when I merge dev to prod all my dev changes will be deployed, even if there is some changes that are not estable for inst.
How should I manage it???
I was thinking about create an external branch, but each branch should be related to a server, so, I would need more infrastructure ( 1 server per branch, if I have 10 persons in team, 10 servers?) , and flow is being heavier, I don't like it too much.
Any idea how to fix it???