Skip to content

Commit

Permalink
ci: ensure Homebrew environment is set up in the shell profile
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Sep 13, 2024
1 parent d53c2ad commit 01f78be
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions orka/templates/macos-13-arm-release.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ build {
"eval \"$($(brew --prefix)/bin/brew shellenv)\""
]
}
// Ensure Homebrew environment is set up in the shell profile.
provisioner "shell" {
inline = [
"echo 'Setting up Homebrew environment in shell profile...'",
"echo 'eval \"$(/opt/homebrew/bin/brew shellenv)\"' >> /Users/admin/.zshrc",
"echo 'eval \"$(/opt/homebrew/bin/brew shellenv)\"' >> /Users/admin/.bash_profile"
]
}
// Check Homebrew. Ignore errors because we are not using the last version of Xcode.
provisioner "shell" {
inline = [
Expand Down
8 changes: 8 additions & 0 deletions orka/templates/macos-13-arm-test.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ build {
"eval \"$($(brew --prefix)/bin/brew shellenv)\""
]
}
// Ensure Homebrew environment is set up in the shell profile.
provisioner "shell" {
inline = [
"echo 'Setting up Homebrew environment in shell profile...'",
"echo 'eval \"$(/opt/homebrew/bin/brew shellenv)\"' >> /Users/admin/.zshrc",
"echo 'eval \"$(/opt/homebrew/bin/brew shellenv)\"' >> /Users/admin/.bash_profile"
]
}
// Check Homebrew. Ignore errors because we are not using the last version of Xcode.
provisioner "shell" {
inline = [
Expand Down
8 changes: 8 additions & 0 deletions orka/templates/macos-13-intel-release.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ build {
"eval \"$($(brew --prefix)/bin/brew shellenv)\""
]
}
// Ensure Homebrew environment is set up in the shell profile.
provisioner "shell" {
inline = [
"echo 'Setting up Homebrew environment in shell profile...'",
"echo 'eval \"$(/usr/local/bin/brew shellenv)\"' >> /Users/admin/.zshrc",
"echo 'eval \"$(/usr/local/bin/brew shellenv)\"' >> /Users/admin/.bash_profile"
]
}
// Check Homebrew. Ignore errors because we are not using the last version of Xcode.
provisioner "shell" {
inline = [
Expand Down
8 changes: 8 additions & 0 deletions orka/templates/macos-13-intel-test.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ build {
"eval \"$($(brew --prefix)/bin/brew shellenv)\""
]
}
// Ensure Homebrew environment is set up in the shell profile.
provisioner "shell" {
inline = [
"echo 'Setting up Homebrew environment in shell profile...'",
"echo 'eval \"$(/usr/local/bin/brew shellenv)\"' >> /Users/admin/.zshrc",
"echo 'eval \"$(/usr/local/bin/brew shellenv)\"' >> /Users/admin/.bash_profile"
]
}
// Check Homebrew. Ignore errors because we are not using the last version of Xcode.
provisioner "shell" {
inline = [
Expand Down

0 comments on commit 01f78be

Please sign in to comment.