Steps contain the actions your deployment process will execute each time you create a release of your software to be deployed. Steps can contain multiple actions and deployment processes can include multiple steps. Steps are executed in sequence by default or you can configure conditions to control where and when steps run.
Octopus includes built-in step templates that have been developed by the Octopus team to handle the most common deployment scenarios. In addition to the built-in step templates, there are also Community Step Templates that have been contributed by the community. You can also use the built-in step templates as the base to create custom steps templates to use across your projects.
Adding Steps to Your Deployment Processes
- Navigate to your project's overview page by selecting Projects and clicking on the project you are working with.
- Click the DEFINE YOUR DEPLOYMENT PROCESS button, and click ADD STEP.
- Find the step template you need, hover over the step and click ADD.
At this point, you have the choice of choosing from the built-in Installed Step Templates or the Community Contributed Step Templates.
If you're looking for example deployments, see the Deploying Applications examples.
- Give the step a short memorable name.
- The Execution Plan tells the step where to run. Depending on the type of step you are configuring the options will vary:
- Octopus Server. (Learn about Running steps on the Octopus Server.)
- Octopus Server on behalf of target roles.
- Deployment targets.
- If you are deploying to deployment targets or running the step on the server on behalf of deployment targets, you can deployment to all targets in parallel (default) or configure a rolling deployment. To configure a rolling deployment click configure a rolling deployment and specify the window size for the deployment. The window size controls how many deployment targets will be deployed to in parallel.
Learn more about rolling deployments.
- The next section of the step is where you specify the actions for the step to take, if you are running a script or deploying a package this is where you provide the details. This section will vary depending on the type of step you're configuring. For example deployments, see the Deploying Applications examples. If you're deploying packages you'll likely need to set your configuration variables.
- After providing the actions the steps takes, you can set the conditions for the step. You can set the following conditions:
- Only run the step when deploying to specific environments.
- Only run the step when deploying a release through a specific channel.
- Set the step to run depending on the status of the previous step.
- Set when package acquisition should occur.
- Specifying whether or not the step is required.
Learn more about conditions.
- Save the step.
- Add additional steps.
With your deployment configured you're ready to create a release.
Example: A Simple Deployment Process
In the example shown below there are three steps that will be executed from top to bottom. The first is a manual intervention which executes on the Octopus Server pausing the deployment until someone intervenes and allow the deployment to continue. This step will only execute when targeting the Production environment. The remaining steps both deploy a package and execute custom scripts on all of the deployment targets with the role web-server.
Example: A Rolling Deployment Process
Let's consider a more complex example like the one shown below. In this example we have configured Octopus to deploy a web application across one or more servers in a web farm behind a load balancer. This process has a single step and three actions which form a rolling deployment.
In This Section
The following topics are explained further in this section: