0
set PROJECT_ID=uplifted-valor-289900
set REGION=us-central1
set CONNECTION_NAME=uplifted-valor-289900:us-central1:cloud-sql-bookstore

gcloud builds submit ^
  --tag gcr.io/%PROJECT_ID%/poll ^
  --project %PROJECT_ID%

gcloud run deploy poll ^
  --image gcr.io/%PROJECT_ID%/poll ^
  --platform managed ^
  --region %REGION% ^
  --allow-unauthenticated ^
  --add-cloudsql-instances %CONNECTION_NAME% ^
  --project %PROJECT_ID%

Above is the content of a batch file named as a.bat.

Using power shell on Windows 10, I type in ./a.bat:

It only ran until gcloud builds submit... and never started the gcloud run deploy poll...

what's the reason?

william007
  • 15,661
  • 20
  • 90
  • 161

0 Answers0