Created
February 22, 2019 02:36
-
-
Save ibrunotome/a1b658d01043f6cec2f61b8b8f7d1d35 to your computer and use it in GitHub Desktop.
Cloud Build example settings for serverless functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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