CI CD Pipeline using TeamCity and Octopus
Overview:
This Article gives you an overview of How-to setup CI/CD pipeline using teamcity and Octopus to deploy Web application on Azure
Requirement:
· Azure Subscription,
· GitHub Account
· Octopus Trail account
TeamCity Setup:
Create TeamCity using Azure Subscription
Define configuration
Create Project in Teamcity for Build .
Create Version control settings : Connect with GitHub
Create Build configuration:
Change build number format
Create Build Step to build and publish the package
Build Step Includes (Build,Publish, Pack and Publish)
Create New application in Azure Active Directory to allow octopus deploy
Register Application
Create New Secret
Permission
Give Permission to application to deploy Azure resources. Add application as a Contributor in subscription.
Octopus Setup :
Create Octopus cloud trial version.
Create New Project in Octopus:
Add Environment to tell octopus, where to deploy build.
Add more environment as per need
Add Azure Account as per environment.
Add TenantId, subscription Id , Application Id
Test the Azure Connection
Create Deployment Steps to deploy application to Azure Web App
Select Template