Reputation: 648
I am not sure if I should ask this here or on ServerFault but I am trying to put together a way of making production patches easier when we find a problem. We have several websites in one git depo, right now what we do is use a TeamCity server to build the .nupkg for each website, then we push it to octopus that handles the publishing to the dev, UAT and production servers.
I have been trying to make TeamCity build from a different branch and push the built package to octopus but that means the we'll need 3 projects per website for each TeamCity and Octopus to handle this kind of architecture.
I would like to know if there is a better way to handle what I want to achieve.
UPDATE: Maybe this needs a little more explanation. We have one repo, for all the websites. As bad as this is this is, this is how it is right now and we can't really change it now. But I wanted some insights from people using .Net and a Dev/UAT/master branching strategy for their deployments.
Upvotes: 0
Views: 46
Reputation: 3575
There is always a better way but what you are asking takes some work. Here is how I am handling a similar scenario. In my case I have a single application all under a single Git repository, but I want the application deployed to a different web site based on the Git branch. So here is how I've set this up:
Prerequisites:
PowerShell
PSake - A PowerHhell build framework for .NET applications
As you can see, it's doable, but not simple.
Upvotes: 1