0

As part of some infrastructure code I am writing with Terraform, I am trying to deploy a Google cloud function. However, in the terraform code for the function, it is mandatory to specify a Cloud Source Repositories repo that the function will pull the application code from, using the "source_repository" and "url" fields.

Currently, what I had set up in my sandbox, was a mirrored connection from cloud source repositories to my own bitbucket cloud repository where the application code was being commmited to, however once I tried to copy this to our company's bitbucket server account, I have realised there is no option to simply mirror a bitbucket server repository in cloud source repositories (it's only available for bitbucket cloud).

Therefore my plan was to mirror a bitbucket server repo, into a bitbucket cloud repo, into a Google Cloud Source Repository which my Cloud Function could pull the code from. Has anyone experimented with this - I already tried but there doesn't seem to be an option for a web hook to mirror it.

Any help appreciated. I have attached a diagram that might help explain the solution i am wanting. The part in green is what I want to add Bitbucket Mirror Image Architecture Diagram

Popchop3
  • 1
  • 2

0 Answers0