Octopus Deploy uses variables and their scopes to make sure that you have the correct configuration for all of your deployments. This video covers how variables can be scoped to environments, roles, targets, steps, and channels.
- [Instructor] In Octopus, variables are used…to configure applications for specific deployment.…You can use them to update items, such as…connection strings, that may change…based on where the application is hosted.…Variable scope is used to decide…what values the variables should have.…You can scope a variable by environment,…role, target, step, or channel.…Variables are stored in either a project or a variable set.…A variable set is a way to group together variables…so that they can be included in multiple projects.…
In this video, I'm going to walk through…an example deployment and show how scope,…in each step, affects the variables.…On the bottom left, we have some variables…that we will use for this deployment.…Install location would be where the code is deployed to.…Connection string is how to connect to the database.…And log metrics is an example of an app setting…that may differ between environments.…Each of these variables has a value and a scope.…The scope at the time of deployment…will determine the value of the variable.…
- What is Octopus Deploy?
- Working with the Octopus server and tentacles
- Using variables to scope configuration items such as roles and targets
- Installing and configuring Octopus Deploy
- Deploying a sample application
- Configuring a build server, adding a project, and creating a release
- Controlling release flow with life cycles and channels