Skip to content

Commit

Permalink
Making the Octo sample smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Nov 7, 2013
1 parent 32813b7 commit 91b7d88
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions help/octopusdeploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ So once you have created a project you are able to create a push a release into
open OctoTools

Target "Release" (fun _ ->
let release = { releaseOptions with Project = "Order Processor" }

Octo (fun octoParams ->
{ octoParams with
ToolPath = "./packages/octopustools"
Server = "http://your-octopus-server/api"
ApiKey = "YOUR-CI-API-KEY-HERE"
Command = CreateRelease (release, None) }
ToolPath = "./packages/octopustools"
Server = "http://your-octopus-server/api"
ApiKey = "YOUR-CI-API-KEY-HERE"
Command = CreateRelease (release, None) }
)
)

Expand All @@ -56,16 +55,15 @@ This is often a good idea when you want your FAKE build script to continue on to
open OctoTools

Target "ReleaseAndDeploy" (fun _ ->

let release = { releaseOptions with Project = "Order Processor" }
let deploy = { deployOptions with DeployTo = "TestEnvironment" }

Octo (fun octoParams ->
{ octoParams with
ToolPath = "./packages/octopustools"
Server = "http://your-octopus-server/api"
ApiKey = "YOUR-CI-API-KEY-HERE"
Command = CreateRelease (release, deploy) }
ToolPath = "./packages/octopustools"
Server = "http://your-octopus-server/api"
ApiKey = "YOUR-CI-API-KEY-HERE"
Command = CreateRelease (release, deploy) }
)
)

Expand All @@ -78,14 +76,15 @@ Finally when you are absolutely happy that your release is good to go the next s
open OctoTools

Target "PromoteRelease" (fun _ ->
let promote = { deployOptions with Project = "Order Processor"; DeployTo = "UatEnvironment" }
let promote = { deployOptions with
Project = "Order Processor"
DeployTo = "UatEnvironment" }

Octo (fun octoParams ->
{ octoParams with
ToolPath = "./packages/octopustools"
Server = "http://your-octopus-server/api"
ApiKey = "YOUR-CI-API-KEY-HERE"
Command = DeployRelease (promote) }
ToolPath = "./packages/octopustools"
Server = "http://your-octopus-server/api"
ApiKey = "YOUR-CI-API-KEY-HERE"
Command = DeployRelease (promote) }
)
)

0 comments on commit 91b7d88

Please sign in to comment.