Created
November 30, 2017 07:10
-
-
Save broady/2fca3774ff4d197bec61f4f2e1f99f40 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/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 |
This file contains hidden or 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
| 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