Skip to content

Instantly share code, notes, and snippets.

@DazWilkin
Created February 2, 2018 19:51
Show Gist options
  • Save DazWilkin/6977047adc9758b98161f66ef69b9e4b to your computer and use it in GitHub Desktop.
Save DazWilkin/6977047adc9758b98161f66ef69b9e4b to your computer and use it in GitHub Desktop.
Shhh… Golang (!!) Cloud Functions
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