Config file confusion

Hi all,

So this may be a really stupid question but I’ve searched and can’t find an answer. We have repos that use GitFlow for it’s branching strategy. Currently I have my .circleci folder on the develop branch but what is the correct place for it? I’m a bit confused as my config file triggers workflows based on master, develop and feature branches so I’m not sure if I should have one config file in master or whether a config should be on each branch but just with the relevant workflow for the branch…

Help!

Thanks

Hi @glance,

Welcome to CircleCI’s Community!
You will need to have a config.yml file located inside a .circleci directory in each branch. You can use Branch Filtering to run different workflows based on which branch the build was triggered from. You may also choose to use Branch filtering For Job Steps based on your needs.