GoogleCloudPlatform / cloud-run-button

Let anyone deploy your GitHub repos to Google Cloud Run with a single click
https://cloud.run
Apache License 2.0
523 stars 91 forks source link

How to specify that I need 2nd generation of execution environment? #239

Open evil-shrike opened 1 year ago

evil-shrike commented 1 year ago

Hi,

currently by default a deployed service has 1st generation of execution environment. Is it possible to specify somehow that I need the 2nd generation?

jamesward commented 1 year ago

There isn't currently an option for that but you could probably do it manually via the hooks. I'll leave this open as a feature request to add an option for it.

evil-shrike commented 1 year ago

yep, in a postcreate hook:

gcloud run services update $K_SERVICE --execution-environment=gen2 --region=$GOOGLE_CLOUD_REGION