Skip to content

Commit

Permalink
Update homebrew deployment process (#401)
Browse files Browse the repository at this point in the history
* Correctly authenticate

* Update script and use latest worker tools
  • Loading branch information
APErebus authored Sep 16, 2024
1 parent d8bb222 commit c658330
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .octopus/deployment_process.ocl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ step "push-homebrew-formula-updates-to-the-homebrew-taps-repo" {
$gitUserEmail = $OctopusParameters["Publish:HomeBrew:UserEmail"]

$githubtoken = $OctopusParameters["Publish:HomeBrew:ApiKey"]
$origin="https://${githubtoken}@github.com/OctopusDeploy/homebrew-taps"
$origin="https://$($gitUserName):$($githubtoken)@github.com/OctopusDeploy/homebrew-taps"

}

Expand All @@ -90,7 +90,7 @@ step "push-homebrew-formula-updates-to-the-homebrew-taps-repo" {
}

git clone --depth 1 $origin octopus-homebrew-taps
cd octopus-homebrew-taps
Set-Location octopus-homebrew-taps

if ($gitUserName) {
git config user.name $gitUserName
Expand All @@ -106,7 +106,7 @@ step "push-homebrew-formula-updates-to-the-homebrew-taps-repo" {
&& git push --repo $origin --set-upstream origin $branchName `
)

cd ..
Set-Location ..
EOT
Octopus.Action.Script.ScriptSource = "Inline"
Octopus.Action.Script.Syntax = "PowerShell"
Expand All @@ -115,7 +115,7 @@ step "push-homebrew-formula-updates-to-the-homebrew-taps-repo" {

container {
feed = "docker-hub"
image = "octopusdeploy/worker-tools:3.3.2-ubuntu.18.04"
image = "octopusdeploy/worker-tools:6.3.0-ubuntu.22.04"
}

packages "cli" {
Expand Down

0 comments on commit c658330

Please sign in to comment.