I'm learning how to use Google App Engine and I can deploy fine via terminal but I want to allow people to contribute to my github repo and anything they publish will update my app. Here is my repo:
https://github.com/rajtastic/roshanissuperveryawesome
I've sync'd my repo to app engine and I can see the contents in my Cloud instance
My question is:
- How do I deploy a new version of my app whenever I commit to my repo?
Does anyone know if this is possible?
That should be possible now with GitHub Actions (Oct. 2018).
See Actions:
Looks like the original push-to-deploy feature is now deprecated, but you can use Google Cloud Platform's Build Trigger to do this:
Navigate to Google Cloud Platform > Container Registry > Build Triggers and set up the branch(es) you want to auto build from your connected github repository.
Make sure you've added a build definition to your repository. [1] has the full specification, but here's an example of the bare minimum to do a
gcloud deploy
viacloudbuild.yaml
:[1] https://cloud.google.com/container-builder/docs/tutorials/creating-a-custom-build-step
it seems that this is not possible. It looks like you need to deploy via a shell somewhere (Google Cloud Shell won't work I don't think as it can't be automated). Codeship.com can do it and I have it working very nicely:
https://documentation.codeship.com/basic/continuous-deployment/deployment-to-google-app-engine/