I have multiple repositories in Bitbucket that need to use the same bitbucket-pipelines.yml (which contain the import of an exported bitbucket-pipelines.yml file). Instead of manually updating this file in every repository, I want to centralize it in a separate repository and have all other repositories import it dynamically.
how to further centralize the imported Bitbucket pipeline in a single repository and share it across multiple repositories without manual duplication?
I tried using git subtree and git submodule However, this creates a folder instead of placing the file directly in the root of the target repository. Is there a way to share or link the bitbucket-pipelines.yml at the root of multiple repositories?
What’s the best approach to achieve this in Bitbucket?