Created
February 2, 2018 19:51
-
-
Save DazWilkin/6977047adc9758b98161f66ef69b9e4b to your computer and use it in GitHub Desktop.
Shhh… Golang (!!) Cloud Functions
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/go" | |
| args: ["build", "-tags","node","main.go"] | |
| env: [ | |
| "GOARCH=amd64", | |
| "GOOS=linux", | |
| "CGO_ENABLED=0", | |
| "GOPATH=/workspace" | |
| ] | |
| - name: "gcr.io/cloud-builders/npm" | |
| args: ["install", "--ignore-scripts", "-save", "local_modules/execer"] | |
| - name: "gcr.io/cloud-builders/gcloud" | |
| args: [ | |
| "beta", | |
| "functions", | |
| "deploy","${_NAME}", | |
| "--entry-point","${_ENTRY_POINT}", | |
| "--source","./", | |
| "--trigger-http", | |
| "--project","${PROJECT_ID}" | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment