6

I would like to deploy a Google Cloud Function in project A, but I would like the source files to be those that I have sitting in a Google Cloud Source Repository in project B. Is this possible?

Thanks,

Balkan
  • 691
  • 1
  • 8
  • 22

1 Answers1

3

You should be able to specify from which source repository you want to get the code.

Make sure that you have set up the proper permissions to access the repository.

Mangu
  • 3,160
  • 2
  • 25
  • 42
  • For clarity, the name of the service account doing the build is documented here : https://cloud.google.com/functions/docs/concepts/iam#google_cloud_functions_service_agent_service_account : `service-PROJECT_NUMBER@gcf-admin-robot.iam.gserviceaccount.com` – SalutAToi Oct 20 '22 at 07:47