Skip to content

Instantly share code, notes, and snippets.

@PatrickHeneise
Last active August 31, 2018 11:57
Show Gist options
  • Save PatrickHeneise/d7174be15a9f23b93698cc2252470be1 to your computer and use it in GitHub Desktop.
Save PatrickHeneise/d7174be15a9f23b93698cc2252470be1 to your computer and use it in GitHub Desktop.
cloud config
steps:
- name: gcr.io/cloud-builders/gcloud
id: decrypt
waitFor: ["-"]
args:
- kms
- decrypt
- --ciphertext-file=${_ENV}.yaml.enc
- --plaintext-file=${_ENV}.yaml
- --location=global
- --keyring=project
- --key=build
- name: "gcr.io/cloud-builders/gcloud"
waitFor: ["decrypt"]
args:
- beta
- functions
- deploy
- listings
- --source=.
- --runtime=nodejs8
- --trigger-http
- --region=${_REGION}
- --memory=${_MEM}
- --env-vars-file=${_ENV}.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment