1
I have 3 format files. yml that I need them to always be on the master branch because it is they who run the automatic system post, but these files cannot be on the develop branch.
So I went and deleted them from the develop branch but every time I get a new release, when the merge happens it erases those files from the master branch.
How do I make that not happen?
Thank you.
In fact, it’s these yml acquisitions that cause deploy to be initialized in production (run pipeline, etc.) so the need for them to exist in master, if I keep them in dev every time I upload a commit in dev it will play for production as well.
– felipesmendes
Your pipeline should be responsible for taking only the required files to production, this includes a process of assembling the generated artifact, taking only the files to deploy. Are you using which tool as pipeline? Which language?
– egomesbrandao
I’m using php with aws codedeploy plus the bitbucket pipeline.
– felipesmendes
During the pipeline process in Bitbucket deletes the files you don’t need and generates the clean artifact for Code Deploy, got it?
– egomesbrandao
I was able to solve, in bitbucket-pipelines.yml adds the configuration that generates deploy only for the master branch, so the file can be in all other branches but when the push is done in master ai yes it generates the deploy.
– felipesmendes