Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy 2nd Gen Google Cloud Function from Cloud Repository

I currently work with 1st gen functions and successfully deploy using Cloud Source Repositories to connect the function to a Github repo, push code changes to the repo and then deploy the cloud function.

I have now built a 2nd generation function and have realized that the option to deploy from a cloud source repository doesn't exist for 2nd gen functions - as mentioned here - what are the steps I need to take to follow a similar workflow for a 2nd gen function?

like image 343
pwwolff Avatar asked Jan 23 '26 10:01

pwwolff


1 Answers

Deploying functions from Cloud Source Repositories is currently only supported in Cloud Functions (1st gen).Gen 2 functions have limited source repository support and thus cannot deploy below the top level of a Cloud Source Repository.

As deploying from Cloud Source Repositories is not supported for gen 2 functions there is a bug raised for this at issue tracker ,Which is still open further progress can be tracked there.

like image 134
Sathi Aiswarya Avatar answered Jan 25 '26 19:01

Sathi Aiswarya