Hey guys ,
I have the following branches
a) development
b) stage
c) production
I have written bitbucket pipeline for all the above 3 branches to do build and deployment to respective machines (dev vm ,stage vm , prod vm) . So, the pipeline code is same, just the final deployment happens on 3 vms . Now , i have 3 pipelines.yml residing in all 3 branches and is working fine .
But the issue is if i do a code merge thro pull request from dev to stage , even my pipelines.yml will be merged . How to avoid this problem . Should i write the pipelines.yml outside of these branches ? If yes, where i need to put that ? in master ?
Thanks