2016-12-23 54 views
5

我的第一個問題,部署到谷歌應用程序引擎... ...過通過在這裏GitHub庫

所以,我學習如何使用谷歌App Engine和我可以通過終端配置不錯,但我想讓人們貢獻我的github回購,他們發佈的任何內容都會更新我的應用。這裏是我的回購:

https://github.com/rajtastic/roshanissuperveryawesome

我同步時間我的回購到App Engine,我可以在我的雲實例

enter image description here

我的問題是看內容:

  • 每當我承諾回購時,如何部署新版本的應用程序?

有誰知道這是否可能?

非常感謝

+0

的[我該如何部署可能的複製直接從谷歌Cloud資源Repository to Google App Engine?](http://stackoverflow.com/questions/40490073/how-can-i-deploy-direct-from-google-cloud-source-repository-to-google-app-engine) –

+0

您應回滾您的更改並添加該答案作爲答案,不要留下問題未回答 –

+0

謝謝@DanCornilescu,回滾並回答 – Rajtastic

回答

3

貌似原始推式部署的功能現在已經過時,但你可以使用谷歌雲平臺的構建,以觸發執行此操作:

導航到Google雲端平臺>容器註冊表>構建觸發器,並從您連接的github存儲庫中設置要自動構建的分支。

確保您已經將版本定義添加到您的存儲庫。 [1]具有完整的規範,但在這裏是做gcloud deploy通過cloudbuild.yaml最低限度的例子:

steps: 
- name: 'gcr.io/cloud-builders/gcloud' 
    args: ['app', 'deploy'] 

[1] https://cloud.google.com/container-builder/docs/tutorials/creating-a-custom-build-step