Cloud Source Repositories provides private Git repositories on Google Cloud with native integration into Cloud Build and other GCP services.
What is Cloud Source Repositories?
Cloud Source Repositories is Google’s Git hosting service, fully integrated into the Google Cloud Platform. You can create your own repositories or automatically mirror existing GitHub/Bitbucket repos.
Native integration with Cloud Build enables CI/CD pipelines without external connectors. IAM controls access at the repository level.
Core Features
- Private Git Repos: Unlimited repositories with unlimited storage
- Repository Mirroring: Automatic synchronization with GitHub/Bitbucket
- Cloud Build Integration: Native triggers for CI/CD pipelines
- Code Search: Search across all repositories in the console
- Pub/Sub Events: Push events for automation
Typical Use Cases
Native GCP CI/CD
Cloud Source Repositories triggers Cloud Build on every push. No external connectors or webhooks needed.
Compliance Requirements
When code storage must occur on Google Cloud infrastructure, Cloud Source Repositories provides complete control.
GitHub Mirroring
Use GitHub for collaboration and automatically mirror to Cloud Source Repositories for native Cloud Build integration.
Benefits
- GCP-native: Deep integration with Cloud Build, IAM, Pub/Sub
- Simple Pricing: Free for small teams
- Mirroring: Keep existing GitHub/Bitbucket workflows
Limitations
- No Pull Requests: No integrated code review workflow
- No Issues: No issue tracking
- Limited Features: Fewer features than GitHub/GitLab
Recommendation
For most teams, we recommend GitHub or GitLab as the primary platform with Cloud Build connector. Cloud Source Repositories makes sense for compliance requirements or very simple projects.
Integration with innFactory
As a Google Cloud Partner, innFactory supports you in setting up Git workflows on GCP: Cloud Build pipelines, repository structure, and CI/CD best practices.
Typical Use Cases
Technical Specifications
Frequently Asked Questions
What is Cloud Source Repositories?
Cloud Source Repositories is a private Git hosting service on Google Cloud. You can create your own repositories or mirror existing GitHub/Bitbucket repos. Integration with Cloud Build enables CI/CD pipelines directly in GCP.
How does Cloud Source Repositories differ from GitHub?
Cloud Source Repositories offers Git hosting with native GCP integration (Cloud Build, IAM, Pub/Sub). However, it lacks features like pull requests, issues, or code reviews. For teams, GitHub or GitLab is often the better choice, with Cloud Build integration via mirroring.
How much does Cloud Source Repositories cost?
Up to 5 project users and 50 GB storage are free. Beyond that, it costs $1 per user/month and $0.10 per GB storage. For most teams, GitHub or GitLab with Cloud Build connector is more cost-effective.
Can I mirror GitHub repositories?
Yes, Cloud Source Repositories can automatically mirror GitHub and Bitbucket repositories. This way you use GitHub for collaboration and Cloud Source Repositories for native Cloud Build integration.
When should I use Cloud Source Repositories?
Cloud Source Repositories is suitable when you need complete control over code storage in GCP (compliance), cannot use external Git services, or have simple projects without pull request workflows.
