My project structure which I can't change now is as follows:
Dev repository
- master
- feature1
- feature2
- feature...
Production repository
And the deployment flow is as follows:
- Feature is merged into Dev repository master
- PR is created from Dev repository master to Production repository master
- Server git deployment script is triggered by a webhook.
- Each instance is fetching changes from git
The question:
I want to change the deployment to a Bitbucket Deployments in a pipeline. I know I can make a pipeline step per branch, but can I do the same per repository? If no, how to archive Bitbucket Deployments the most reliable way.