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

前端 未结 6 1080
野性不改
野性不改 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:15

    you can trigger a function via

    gcloud functions call NAME --data 'THING'

    inside your function you can do pretty much anything possibile within Googles Public API's

    if you just want to directly trigger Google Cloud Builder from git then its probably advisable to use Release version tags - so your chatbot might add a release tag to your release branch in git at which point cloud-builder will start the build.

    more info here https://cloud.google.com/cloud-build/docs/running-builds/automate-builds

提交回复
热议问题