Is it possible to use a custom Git server/service other than GitHub or Bitbucket as the origin for a Cloud Build trigger? My code is hosted on a private Git platform and it would be hard to migrate it to GitHub.
Solved! Go to Solution.
Currently the options for repositories are:
You can see these options when you create a new trigger and select a repository to build from.
There exist beta and alpha versions of a Build Trigger creation command, which offer more options when it comes to what triggers a build, but they generally use either BitBucket, Github, or Cloud Source repositories.
I would recommend using Git-Hooks on your private Git platform, since I don't know if said private Git platform has anything similar to Github Actions. Git-Hooks are essentially scripts that Git will call according to their name ("pre-commit", "merge", etc) and can be used to perform the gcloud CLI command for Cloud Build.
Currently the options for repositories are:
You can see these options when you create a new trigger and select a repository to build from.
There exist beta and alpha versions of a Build Trigger creation command, which offer more options when it comes to what triggers a build, but they generally use either BitBucket, Github, or Cloud Source repositories.
I would recommend using Git-Hooks on your private Git platform, since I don't know if said private Git platform has anything similar to Github Actions. Git-Hooks are essentially scripts that Git will call according to their name ("pre-commit", "merge", etc) and can be used to perform the gcloud CLI command for Cloud Build.