I am not quite following here. Imagine my main repo is called webApp
. That’s where all my code lives. When I create a new repo (webAppProd
), do I fork all of my code? I can’t imagine that is what you’re actually suggesting, because it would create a lot of overhead in terms of syncing commits between two repos.
Or are you saying that webAppProd
knows to pull the source code from webApp
? This seems to initially make more sense, but then it creates all sorts of problems around CI/CD. For example, let’s say I want to automatically deploy to prod after CI passes on main
. Would webApp
call to webAppProd
to notify of a successful build?
I feel like I must be missing something, because I cannot make the ergonomics make sense.