mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-04 09:00:55 +08:00
Add Google Cloud SDK for Windows (#1102)
* Add Google Cloud SDK * Add Validate-GoogleCloudSDK.ps1 script
This commit is contained in:
committed by
GitHub
parent
f342a7de2d
commit
4c34ad64df
9
images/win/scripts/Installers/Install-GoogleCloudSDK.ps1
Normal file
9
images/win/scripts/Installers/Install-GoogleCloudSDK.ps1
Normal file
@@ -0,0 +1,9 @@
|
||||
################################################################################
|
||||
## File: Install-GoogleCloudSDK.ps1
|
||||
## Desc: Install Google Cloud SDK
|
||||
################################################################################
|
||||
|
||||
# https://cloud.google.com/sdk/docs/downloads-interactive
|
||||
$googleCloudSDKInstaller = "https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe"
|
||||
$argumentList = @("/S", "/allusers", "/noreporting")
|
||||
Install-Binary -Url $googleCloudSDKInstaller -Name "GoogleCloudSDKInstaller.exe" -ArgumentList $argumentList
|
||||
19
images/win/scripts/Installers/Validate-GoogleCloudSDK.ps1
Normal file
19
images/win/scripts/Installers/Validate-GoogleCloudSDK.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
## File: Validate-GoogleCloudSDK.ps1
|
||||
## Desc: Validate Install Google Cloud SDK for Windows
|
||||
################################################################################
|
||||
|
||||
# Simple validation gcloud, gsutil, and bq command line tools
|
||||
$validateTools = @("bq", "gcloud", "gsutil")
|
||||
foreach($tool in $validateTools)
|
||||
{
|
||||
if (Get-Command -Name $tool)
|
||||
{
|
||||
Write-Host "$tool on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "$tool is not on path"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user