First Deployment - youngDevOps/OctopusDeployGettingStartedBlog GitHub Wiki

First Deployment

Introduction

Welcome to your first deployment with Octopus Deploy. In this section, you will configure your first deployment to run Hello (plus your first name)

Configuration

For your first configuration. You should get this welcome screen:

Click Create your first environment.

Environments

  • If it isn't your first time or you have already clicked off the screen. You can find environments within the Environments tab.

  • Click the Add Environment button
  • Give your environment a name. For example test or dev

  • You can further configure your environment below if you wish

Projects

  • Navigate to the projects tab.

  • Click Add Project
  • Give your project a name. For example Hello World

Defining the Deployment Process

-** Define your Deployment Process** is found within the project you just set up

  • Click **Define Your Deployment Process **
  • Click Add Step and you should have the following screen

https://octopusdeployblogimages.s3.eu-west-2.amazonaws.com/First+Deployment/Add+Step+screen.PNG

  • Click the **Script tile **

  • Within the Run a Script Screen:

  • Use the default name
  • Leave the enabled box ticked
  • Within Execution Location, Select run on the Octopus Server
  • In Script Source, select** Inline source code (with optional package references)**
  • Choose your language of choice to run Hello, (Your name) e.g. PowerShell
  • Add your Hello World Code for example in Powershell: Write-Host "Hello, Ethan!"

-Click Save

Create and Deploy a Release.

Now that you have created a environment, project and added a Hello (your name) Script. Now it's time to deploy.

  • Within the screen above click Create Release

  • This then creates the release and a version number is given.
  • You can add release notes if you wish
  • Click Save
  • Click Deploy to Test (Or your project name)

  • Leave everything default and click Deploy
  • You've now successfully deployed.
  • You should see the following success screen

  • Click** logs **to see that Hello, (Your name) has ran.

Success!