Auto deploy Google Cloud Functions from Google Cloud Source Control

后端 未结 2 1738
旧巷少年郎
旧巷少年郎 2021-01-01 03:06

I can\'t figure out how to automatically deploy newly pushed commits of Cloud Functions either from Cloud Source Control or from GitHub directly. I have found a similar solu

2条回答
  •  有刺的猬
    2021-01-01 03:43

    You could use Google Cloud Builder to achieve this goal. Create a trigger on your repository, and the triggered build deploys the new code to Google Cloud Function.

    I made a quick example: https://github.com/Philmod/auto-deploy-gcf

    Cheers, Philmod

提交回复
热议问题