github lambda functino code example
Example 1: clone serverless repository scripts
gcloud builds log d3a313b8-ec30-442d-af0f-b9d5a10f788a
------------------------------------------------------------------------------------------------------------ REMOTE BUILD OUTPUT -------------------------------------------------------------------------------------------------------------
starting build "d3a313b8-ec30-442d-af0f-b9d5a10f788a"
FETCHSOURCE
Initialized empty Git repository in /workspace/.git/
From https://source.developers.google.com/p/speeltuin-mvanholsteijn/r/paas-monitor
* branch 23f349221c561dced520606ea0a144c4f04dab95 -> FETCH_HEAD
HEAD is now at 23f3492 added cloudbuild.yaml
...
Copy
Example 2: clone serverless repository scripts
resource google_sourcerepo_repository image {
name = "paas-monitor"
depends_on = [google_project_service.sourcerepo]
}
Copy