From 0ea127c642b21b432efdfeb69fe1d96c3ba462cb Mon Sep 17 00:00:00 2001 From: Luke Schlangen Date: Sat, 6 Jan 2024 11:08:27 -0600 Subject: [PATCH] examples: add allow-unauthenticated option to cloud run deploy (#58792) Co-authored-by: Lee Robinson --- examples/with-docker/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/with-docker/README.md b/examples/with-docker/README.md index 5ec2415ee0..1554a7894a 100644 --- a/examples/with-docker/README.md +++ b/examples/with-docker/README.md @@ -42,11 +42,10 @@ This will build the project as a standalone app inside the Docker image. 1. Run `gcloud auth login` to log in to your account. 1. [Create a new project](https://cloud.google.com/run/docs/quickstarts/build-and-deploy) in Google Cloud Run (e.g. `nextjs-docker`). Ensure billing is turned on. 1. Build your container image using Cloud Build: `gcloud builds submit --tag gcr.io/PROJECT-ID/helloworld --project PROJECT-ID`. This will also enable Cloud Build for your project. -1. Deploy to Cloud Run: `gcloud run deploy --image gcr.io/PROJECT-ID/helloworld --project PROJECT-ID --platform managed`. Choose a region of your choice. +1. Deploy to Cloud Run: `gcloud run deploy --image gcr.io/PROJECT-ID/helloworld --project PROJECT-ID --platform managed --allow-unauthenticated`. Choose a region of your choice. - You will be prompted for the service name: press Enter to accept the default name, `helloworld`. - You will be prompted for [region](https://cloud.google.com/run/docs/quickstarts/build-and-deploy#follow-cloud-run): select the region of your choice, for example `us-central1`. - - You will be prompted to **allow unauthenticated invocations**: respond `y`. ## Running Locally