Octopus Deploy – promoting releases with different configuration

Using Octopus Deploy v3.x it is possible to promote a release to different environments using different configuration for each environment.

For example on DEV it is possible to use the web.dev.config transform and a IIS host header of mysite.dev. On QA the web.qa.config transform would be used and the IIS host header would be mysite.qa.

Create a step to deploy the web site to IIS and enable it for DEV and QA environments:

Octopus1

Create environment specific variables for web.config transform and host header:

Octopus2

To transform web.dev.config and web.qa.config to web.config depending on the environment then edit the “Additional Transforms” in the “Configuration Transforms” section like this:

Octopus3

To use the host header variable edit the “IIS Bindings” section like this:

Octopus4

Leave a comment