7 lines
442 B
PowerShell
7 lines
442 B
PowerShell
foreach ($api in gcloud functions list --filter="name:( api- )" --format="csv[no-heading](NAME,REGION)") {
|
|
$apiData = $api.Split(",")
|
|
$apiName = $apiData[0]
|
|
$apiRegion = $apiData[1]
|
|
Write-Host "`n==========================================================`nAPI: $apiName `t REGION: $apiRegion `n==========================================================`n"
|
|
gcloud functions deploy $apiName --region $apiRegion --entry-point widgets
|
|
} |