$ gcloud source repos create my-function Created [my-function]. $ gcloud source repos clone my-function Cloning into 'my-function'...
index.js exports.f = function(req, res) { res.send("hello, gcf!"); };
deploy.yaml steps: - name: gcr.io/cloud-builders/gcloud args: - beta - functions - deploy - --trigger-http - --source=. - --entry-point=f - hello-gcf # Function name
gcloud beta functions deploy --trigger-http --source=. --entry-point=f hello-gcf
{numerical-project-id}@cloudbuild.gserviceaccount.com
gcloud container builds submit --config deploy.yaml .
$ git checkout prod $ git pull origin prod $ git merge master $ git push origin prod