Skip to content

Instantly share code, notes, and snippets.

@ibrunotome
Created February 22, 2019 02:36
Show Gist options
  • Save ibrunotome/a1b658d01043f6cec2f61b8b8f7d1d35 to your computer and use it in GitHub Desktop.
Save ibrunotome/a1b658d01043f6cec2f61b8b8f7d1d35 to your computer and use it in GitHub Desktop.
Cloud Build example settings for serverless functions
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '${_EXAMPLE}', '.env.yaml']
id: 'setenv'
- name: 'gcr.io/cloud-builders/gcloud'
waitFor: ['setenv']
args:
- functions
- deploy
- myNodeJsMethod
- --runtime=nodejs8
- --trigger-http
- --timeout=60s
- --memory=256MB
- --env-vars-file=.env.yaml
- name: 'gcr.io/cloud-builders/gcloud'
waitFor: ['setenv']
args:
- functions
- deploy
- myGolangMethod
- --runtime=go111
- --trigger-http
- --timeout=60s
- --memory=256MB
- --env-vars-file=.env.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment