Cloud Build: build, test and deploy
- ‘gcloud builds –help’
- Support connecting to GitHub or mirroring GitHub/Bitbucket through Cloud Source Repo
- Cloud Source Repo: already connected, just need to create triggers
- Connecting to GitHub repo
- Require Google Cloud Build to be installed on GitHub
- Build command such as ‘hugo’ or ‘firebase’ are not available on Cloud Build by default. Possible solutions are either build it on the flight through ‘gcr.io/cloud-builders/wget’ or build a custom docker image and push it through ‘builds submit’. The latter option makes ‘gcr.io/project-id/CMD’ to work in Cloud Build build file.
- There are a bunch of images available at: https://github.com/GoogleCloudPlatform/cloud-builders-community.git (ref. https://cloud.google.com/cloud-build/docs/deploying-builds/deploy-firebase)
- Can detect build file such as ‘cloudbuild.yaml’
- Here has the list of built-in builders: gcr/images/cloud-builders/GLOBAL