How to run a Google Cloud Build trigger via cli / rest api / cloud functions?

前端 未结 6 1119
野性不改
野性不改 2021-02-09 01:53

Is there such an option? My use case would be running a trigger for a production build (deploys to production). Ideally, that trigger doesn\'t need to listen to any change since

6条回答
  •  被撕碎了的回忆
    2021-02-09 02:24

    You should be able to manually trigger a build using curl and a json payload. For details see: https://cloud.google.com/cloud-build/docs/running-builds/start-build-manually#running_builds.

    Given that, you could write a Python Cloud function to replicate the curl call via the requests module.

提交回复
热议问题