Octopus Deploy Change Binding with Environment Name

Hello,

I have a question about bindings.
In our system, we have two envrionments which are blue and green. And i want to change bindings with environment type.
For example, if i deploy to blue environment, i want to change my url as blue.test.com. if i deploy green environment, it should be change as green.test.com.
How can i do that automatically? Can i define variable set for bindings too?

Thank you for your time.

Hi Yagmur,

Thanks for getting in touch! Our binding settings in the package step can be set with variables and then scoped to environments.
So you can set the hostname to a variable such as #{hostname} and for each value scope them to the appropriate environment.

Let me know if you have any problems with this or have any further questions.
Vanessa