Applying an environment to a specific project

Hi all,

I am setting up a new octo instance as follows:

  • 2 projects, with the same environments
  • However the projects will deploy to separate deployment targets
  • Project 1 will have additional environments

How would I got about setting this up:

  1. How do I configure an environment to be applied to a specific project.
  2. If I have 2 deployment targets under the same environment how do I configure octopus to deploy to the correct target based on the project?

thanks
Todd

Hi Todd,

Thank you for reaching out to us with your query.

How do I configure an environment to be applied to a specific project

Environments are connected to Projects using Lifecycles. The Default Lifecycle includes all of your Environments so you’d need to create a new Lifecycle for Project 2 which excludes the additional Environments that Project 1 requires. You can find out more below:

If I have 2 deployment targets under the same environment how do I configure octopus to deploy to the correct target based on the project?

You can apply Target Roles to a Deployment Target - for example, describing a particular server as a database server. You can scope deployment steps to a particular type of Deployment Target. You can find out more below:

I hope this is helpful. Please reach out to us if you have any questions.

Best Regards,

Charles

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.