mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-27 20:12:46 +08:00
[macos] use brew_smart_install where appropriate (#8607)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
|
||||
brew install httpd
|
||||
source ~/utils/utils.sh
|
||||
|
||||
brew_smart_install httpd
|
||||
sudo sed -Ei '' 's/Listen .*/Listen 80/' $(brew --prefix)/etc/httpd/httpd.conf
|
||||
|
||||
invoke_tests "WebServers" "Apache"
|
||||
|
||||
@@ -8,7 +8,7 @@ sudo installer -pkg /tmp/AWSCLIV2.pkg -target /
|
||||
|
||||
echo Installing aws sam cli...
|
||||
brew tap aws/tap
|
||||
brew install aws-sam-cli
|
||||
brew_smart_install aws-sam-cli
|
||||
|
||||
echo "Install aws cli session manager"
|
||||
brew install --cask session-manager-plugin
|
||||
|
||||
@@ -4,7 +4,7 @@ arch=$(get_arch)
|
||||
|
||||
# Check MacOS architecture and if ARM install using brew
|
||||
if [ $arch == "arm64" ]; then
|
||||
brew install azcopy
|
||||
brew_smart_install azcopy
|
||||
else
|
||||
AZCOPY_DOWNLOAD_URL="https://aka.ms/downloadazcopy-v10-mac"
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo Installing bicep cli...
|
||||
brew tap azure/bicep
|
||||
brew install bicep
|
||||
brew_smart_install bicep
|
||||
|
||||
invoke_tests "Common" "Bicep"
|
||||
|
||||
@@ -27,10 +27,10 @@ brew analytics off
|
||||
|
||||
# jq is required for further installation scripts
|
||||
echo "Installing jq..."
|
||||
brew install jq
|
||||
brew_smart_install jq
|
||||
|
||||
echo "Installing curl..."
|
||||
brew install curl
|
||||
brew_smart_install curl
|
||||
|
||||
echo "Installing wget..."
|
||||
brew_smart_install "wget"
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
|
||||
brew install nginx
|
||||
source ~/utils/utils.sh
|
||||
|
||||
brew_smart_install nginx
|
||||
sudo sed -Ei '' 's/listen.*/listen 80;/' $(brew --prefix)/etc/nginx/nginx.conf
|
||||
|
||||
invoke_tests "WebServers" "Nginx"
|
||||
|
||||
Reference in New Issue
Block a user