One-way sync from GitHub/Bitbucket to CSR
CSR provides an option to add a repository by connecting to an external repository and perform near real-time one-way sync. Currently, GitHub and Bitbucket are the only supported external source repositories.
The following is the step-by-step process to create a repository in CSR by connecting to an external GitHub repository (similar steps will apply to a Bitbucket-based repository):
- Navigate to Source Repositories in Google Cloud Console and select the Add Repository option.
- Select the option to connect to an external repository (Figure 5.5):
- Select an appropriate project and an external Git provider (GitHub in this case) and authorize the selected GCP project to store third-party authentication credentials in order to enable connected repository services (Figure 5.6):
- Enter your GitHub credentials and authorize GCP...