Skip to content

Instantly share code, notes, and snippets.

@broady
Created November 30, 2017 07:10
Show Gist options
  • Select an option

  • Save broady/2fca3774ff4d197bec61f4f2e1f99f40 to your computer and use it in GitHub Desktop.

Select an option

Save broady/2fca3774ff4d197bec61f4f2e1f99f40 to your computer and use it in GitHub Desktop.
steps:
- name: gcr.io/cloud-builders/gcloud
args:
- beta
- functions
- deploy
- --trigger-http
- --source=https://source.developers.google.com/projects/$PROJECT_ID/repos/$REPO_NAME/revisions/$COMMIT_SHA/paths/
- --entry-point=hello
- hello # Function name
exports.hello = function hello(req, res) {
res.send('coooool!');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment