#Multiple branches for catalog-info
8 messages · Page 1 of 1 (latest)
I am not fully understanding your question. Are you using github? Are you aware that github has a default branch option. If you set this to the correct branch whether its develop, main or master, then backstage can be configured to discover catalog yaml files from the default branch.
GitLab.
Okay let me clarify. If you don’t add branch into the app-config.yaml, it will auto go to the default branch, regardless of the name.
So that solved my original problem 🙂
Another issue is that some teams want to “test” their catalog-info on a test branch. Can they do that by clicking “register an existing component”
Im not as familliar with gitlab but I can see here that there is provision for the default branch. https://backstage.io/docs/integrations/gitlab/discovery/#configuration
Yeah I’m reading that rn
You can use register existing component for tests on a branch.
Make sure to unregister it so that the item on the default branch does not make a conflict with the branch.
So when we define a default branch. It is NOT using their default branch but instead using the defined branch