google-cloud-platformgoogle-cloud-buildgoogle-cloud-scheduler

Trigger Google Cloud Build with Google Cloud Scheduler periodically


Is it somehow possible to trigger a Google Cloud Build with Google Cloud Scheduler periodically?

I can't find anything related to it on the Internet.


Solution

  • In Cloud Scheduler we perform a HTTP request on the project's build trigger: https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.triggers/run

    For authentication we use a service account.