Skip to content

Instantly share code, notes, and snippets.

@georgschlenkhoff
Created November 16, 2018 13:05
Show Gist options
  • Save georgschlenkhoff/0a385c9cf85973cacd1dbea058550237 to your computer and use it in GitHub Desktop.
Save georgschlenkhoff/0a385c9cf85973cacd1dbea058550237 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Setting environment variables"
gcloud beta functions deploy functionName --env-vars-file .env.yaml
echo "Starting deployment to Google Functions"
gcloud functions deploy functionName --runtime nodejs8 --trigger-http --memory=1024MB --timeout=90s --region=europe-west3
echo "Ended deployment to Google Functions"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment