-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update deployment process to use different user for homebrew pub…
…lish (#212) Use variable for the Git username fix: Corrected the release-please setup for managing releases
- Loading branch information
Showing
5 changed files
with
58 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
step "Upload OctopusTools to S3 public with hashes" { | ||
step "upload-octopustools-to-s3-public-with-hashes" { | ||
name = "Upload OctopusTools to S3 public with hashes" | ||
|
||
action { | ||
properties = { | ||
Octopus.Action.Template.Id = "ActionTemplates-864" | ||
Octopus.Action.Template.Version = "4" | ||
PackageToUpload = "{\"PackageId\":\"OctopusTools.Zips\",\"FeedId\":\"Octopus Server (built-in)\"}" | ||
PackageToUpload = "{\"PackageId\":\"OctopusTools.Zips\",\"FeedId\":\"octopus-server-built-in\"}" | ||
S3BucketPath = "#{AwsBucket}/octopus-tools/#{Octopus.Action.Package[PackageToUpload].PackageVersion}/" | ||
} | ||
worker_pool = "Hosted Windows 2019" | ||
worker_pool = "hosted-windows-2019" | ||
|
||
packages "PackageToUpload" { | ||
acquisition_location = "Server" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "OctopusTools.Zips" | ||
properties = { | ||
Extract = "True" | ||
|
@@ -22,7 +23,8 @@ step "Upload OctopusTools to S3 public with hashes" { | |
} | ||
} | ||
|
||
step "Push Octopus.DotNet.Cli to NuGet style feed" { | ||
step "push-octopus-dotnet-cli-to-nuget-style-feed" { | ||
name = "Push Octopus.DotNet.Cli to NuGet style feed" | ||
start_trigger = "StartWithPrevious" | ||
|
||
action { | ||
|
@@ -39,11 +41,11 @@ step "Push Octopus.DotNet.Cli to NuGet style feed" { | |
Octopus.Action.Script.ScriptSource = "Inline" | ||
Octopus.Action.Script.Syntax = "PowerShell" | ||
} | ||
worker_pool = "Hosted Windows 2019" | ||
worker_pool = "hosted-windows-2019" | ||
|
||
packages "NuGet.CommandLine" { | ||
acquisition_location = "Server" | ||
feed = "NuGet" | ||
feed = "nuget" | ||
package_id = "NuGet.CommandLine" | ||
properties = { | ||
Extract = "True" | ||
|
@@ -52,7 +54,7 @@ step "Push Octopus.DotNet.Cli to NuGet style feed" { | |
|
||
packages "Octopus.DotNet.Cli" { | ||
acquisition_location = "Server" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "Octopus.DotNet.Cli" | ||
properties = { | ||
Extract = "False" | ||
|
@@ -61,7 +63,8 @@ step "Push Octopus.DotNet.Cli to NuGet style feed" { | |
} | ||
} | ||
|
||
step "Push OctopusTools to NuGet style feed" { | ||
step "push-octopustools-to-nuget-style-feed" { | ||
name = "Push OctopusTools to NuGet style feed" | ||
start_trigger = "StartWithPrevious" | ||
|
||
action { | ||
|
@@ -90,11 +93,11 @@ step "Push OctopusTools to NuGet style feed" { | |
Octopus.Action.Script.ScriptSource = "Inline" | ||
Octopus.Action.Script.Syntax = "PowerShell" | ||
} | ||
worker_pool = "Hosted Windows 2019" | ||
worker_pool = "hosted-windows-2019" | ||
|
||
packages "NuGet.CommandLine" { | ||
acquisition_location = "Server" | ||
feed = "NuGet" | ||
feed = "nuget" | ||
package_id = "NuGet.CommandLine" | ||
properties = { | ||
Extract = "True" | ||
|
@@ -103,7 +106,7 @@ step "Push OctopusTools to NuGet style feed" { | |
|
||
packages "OctopusTools" { | ||
acquisition_location = "Server" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "OctopusTools" | ||
properties = { | ||
Extract = "False" | ||
|
@@ -112,12 +115,13 @@ step "Push OctopusTools to NuGet style feed" { | |
} | ||
} | ||
|
||
step "Push OctopusTools to Chocolatey" { | ||
step "push-octopustools-to-chocolatey" { | ||
name = "Push OctopusTools to Chocolatey" | ||
start_trigger = "StartWithPrevious" | ||
|
||
action { | ||
action_type = "Octopus.Script" | ||
environments = ["Components - External"] | ||
environments = ["components-external"] | ||
properties = { | ||
Octopus.Action.Script.ScriptBody = <<-EOT | ||
$nugetPackagePath = $OctopusParameters["Octopus.Action.Package[NuGet.CommandLine].ExtractedPath"] | ||
|
@@ -143,11 +147,11 @@ step "Push OctopusTools to Chocolatey" { | |
Octopus.Action.Script.ScriptSource = "Inline" | ||
Octopus.Action.Script.Syntax = "PowerShell" | ||
} | ||
worker_pool = "Hosted Windows 2019" | ||
worker_pool = "hosted-windows-2019" | ||
|
||
packages "OctopusTools" { | ||
acquisition_location = "Server" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "OctopusTools" | ||
properties = { | ||
Extract = "False" | ||
|
@@ -156,7 +160,7 @@ step "Push OctopusTools to Chocolatey" { | |
|
||
packages "NuGet.CommandLine" { | ||
acquisition_location = "Server" | ||
feed = "NuGet" | ||
feed = "nuget" | ||
package_id = "NuGet.CommandLine" | ||
properties = { | ||
Extract = "True" | ||
|
@@ -165,26 +169,27 @@ step "Push OctopusTools to Chocolatey" { | |
} | ||
} | ||
|
||
step "Publish Homebrew" { | ||
step "publish-homebrew" { | ||
name = "Publish Homebrew" | ||
start_trigger = "StartWithPrevious" | ||
|
||
action { | ||
environments = ["Components - External"] | ||
environments = ["components-external"] | ||
properties = { | ||
Octopus.Action.Template.Id = "ActionTemplates-882" | ||
Octopus.Action.Template.Version = "19" | ||
PackageToUpload = "{\"PackageId\":\"OctopusTools.Zips\",\"FeedId\":\"Octopus Server (built-in)\"}" | ||
PackageToUpload = "{\"PackageId\":\"OctopusTools.Zips\",\"FeedId\":\"octopus-server-built-in\"}" | ||
PubHomebrew-Email = "[email protected]" | ||
PubHomebrew-FileName = "octopuscli.rb" | ||
PubHomebrew-PersonalAccessToken = "#{HomeBrewKey}" | ||
PubHomebrew-RepoName = "homebrew-taps" | ||
PubHomebrew-Username = "OctoBob" | ||
PubHomebrew-Username = "#{HomeBrewGitUsername}" | ||
} | ||
worker_pool = "Hosted Windows 2019" | ||
worker_pool = "hosted-windows-2019" | ||
|
||
packages "PackageToUpload" { | ||
acquisition_location = "Server" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "OctopusTools.Zips" | ||
properties = { | ||
Extract = "True" | ||
|
@@ -195,12 +200,13 @@ step "Publish Homebrew" { | |
} | ||
} | ||
|
||
step "Publish to APT repo" { | ||
step "publish-to-apt-repo" { | ||
name = "Publish to APT repo" | ||
start_trigger = "StartWithPrevious" | ||
|
||
action { | ||
action_type = "Octopus.Script" | ||
environments = ["Components - External"] | ||
environments = ["components-external"] | ||
properties = { | ||
Octopus.Action.Script.ScriptBody = <<-EOT | ||
cd OctopusTools.Packages.linux-x64 || exit | ||
|
@@ -218,11 +224,11 @@ step "Publish to APT repo" { | |
Octopus.Action.Script.ScriptSource = "Inline" | ||
Octopus.Action.Script.Syntax = "Bash" | ||
} | ||
worker_pool = "Hosted Ubuntu" | ||
worker_pool = "hosted-ubuntu" | ||
|
||
packages "OctopusTools.Packages.linux-x64" { | ||
acquisition_location = "Server" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "OctopusTools.Packages.linux-x64" | ||
properties = { | ||
Extract = "True" | ||
|
@@ -232,12 +238,13 @@ step "Publish to APT repo" { | |
} | ||
} | ||
|
||
step "Publish to RPM repo" { | ||
step "publish-to-rpm-repo" { | ||
name = "Publish to RPM repo" | ||
start_trigger = "StartWithPrevious" | ||
|
||
action { | ||
action_type = "Octopus.Script" | ||
environments = ["Components - External"] | ||
environments = ["components-external"] | ||
properties = { | ||
Octopus.Action.Script.ScriptBody = <<-EOT | ||
cd OctopusTools.Packages.linux-x64 || exit | ||
|
@@ -255,11 +262,11 @@ step "Publish to RPM repo" { | |
Octopus.Action.Script.ScriptSource = "Inline" | ||
Octopus.Action.Script.Syntax = "Bash" | ||
} | ||
worker_pool = "Hosted Ubuntu" | ||
worker_pool = "hosted-ubuntu" | ||
|
||
packages "OctopusTools.Packages.linux-x64" { | ||
acquisition_location = "Server" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "OctopusTools.Packages.linux-x64" | ||
properties = { | ||
Extract = "True" | ||
|
@@ -269,11 +276,12 @@ step "Publish to RPM repo" { | |
} | ||
} | ||
|
||
step "Push Docker Images to Prod" { | ||
step "push-docker-images-to-prod" { | ||
name = "Push Docker Images to Prod" | ||
|
||
action { | ||
action_type = "Octopus.Script" | ||
environments = ["Components - External"] | ||
environments = ["components-external"] | ||
properties = { | ||
Octopus.Action.Script.ScriptBody = <<-EOT | ||
|
||
|
@@ -365,11 +373,11 @@ step "Push Docker Images to Prod" { | |
Octopus.Action.Script.ScriptSource = "Inline" | ||
Octopus.Action.Script.Syntax = "PowerShell" | ||
} | ||
worker_pool = "Hosted Ubuntu" | ||
worker_pool = "hosted-ubuntu" | ||
|
||
packages "Octo.Docker.Image" { | ||
acquisition_location = "Server" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "Octo.Docker.Image" | ||
properties = { | ||
Extract = "False" | ||
|
@@ -380,12 +388,13 @@ step "Push Docker Images to Prod" { | |
} | ||
} | ||
|
||
step "Create release in Slipway" { | ||
step "create-release-in-slipway" { | ||
name = "Create release in Slipway" | ||
start_trigger = "StartWithPrevious" | ||
|
||
action { | ||
action_type = "Octopus.Script" | ||
environments = ["Components - External"] | ||
environments = ["components-external"] | ||
properties = { | ||
Octopus.Action.Script.ScriptBody = <<-EOT | ||
$slipwayToken = $OctopusParameters["SlipwayToken"] | ||
|
@@ -435,11 +444,11 @@ step "Create release in Slipway" { | |
Octopus.Action.Script.ScriptSource = "Inline" | ||
Octopus.Action.Script.Syntax = "PowerShell" | ||
} | ||
worker_pool = "Hosted Windows 2019" | ||
worker_pool = "hosted-windows-2019" | ||
|
||
packages "OctopusTools" { | ||
acquisition_location = "NotAcquired" | ||
feed = "Octopus Server (built-in)" | ||
feed = "octopus-server-built-in" | ||
package_id = "OctopusTools" | ||
properties = { | ||
Extract = "True" | ||
|
@@ -448,7 +457,8 @@ step "Create release in Slipway" { | |
} | ||
} | ||
|
||
step "Invalidate CloudFront Cache" { | ||
step "invalidate-cloudfront-cache" { | ||
name = "Invalidate CloudFront Cache" | ||
|
||
action { | ||
properties = { | ||
|
@@ -458,11 +468,12 @@ step "Invalidate CloudFront Cache" { | |
Octopus.Action.Template.Id = "ActionTemplates-962" | ||
Octopus.Action.Template.Version = "1" | ||
} | ||
worker_pool = "Hosted Windows 2019" | ||
worker_pool = "hosted-windows-2019" | ||
} | ||
} | ||
|
||
step "Invalidate CloudFlare cache of the OctopusTools Manifest" { | ||
step "invalidate-cloudflare-cache-of-the-octopustools-manifest" { | ||
name = "Invalidate CloudFlare cache of the OctopusTools Manifest" | ||
|
||
action { | ||
properties = { | ||
|
@@ -473,6 +484,6 @@ step "Invalidate CloudFlare cache of the OctopusTools Manifest" { | |
Octopus.Action.Template.Id = "ActionTemplates-963" | ||
Octopus.Action.Template.Version = "6" | ||
} | ||
worker_pool = "Hosted Windows 2019" | ||
worker_pool = "hosted-windows-2019" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = 3 | ||
version = 4 |