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

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

    If you just want to create a function that you can invoke directly, you have two choices:

    1. An HTTP trigger with a standard API endpoint
    2. A pubsub trigger that you invoke by sending a message to a pubsub topic

    The first is the more common approach, as you are effectively creating a web API that any client can call with an HTTP library of their choice.

提交回复
热议问题