Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Best wo integrated private GitHub enterprise repository

What will be the best way to integrate GitHub enterprise repository with cloud functions , I am aware using cloud build triggers we can configured GitHub enterprise , but how do we use it from cloud function  ?

from cloud VM The e can di the repo clone and copy to gcs bucket and from bucket we can read it from cloud function , still I wanted to use from cloud function so that I can pull the latest commit from GitHub enterprise repository 

0 2 412
2 REPLIES 2

Hi @FalconSid,

Welcome to Google Cloud Community!

I don't think that this is possible however what you can do is to mirror your GitHub enterprise repository, then you can use the data within the Google Cloud Platform.

This document will guide you on how to deploy a function from source code located in Cloud Source Repositories. Deploying from Cloud Source Repositories also enables you to deploy code hosted in a GitHub repository.


Hope this helps.

Thanks @anjelisa  , mirror will not work as we are using GitHub enterprise private repository and source repository only have option mirro to gihub and gitlab , I mean I have connected it using cloud build connect , is there any way I can clone it using cloudbuild and copy in gcs bucket ?