Skip to content

Instantly share code, notes, and snippets.

@ivamluz
Created July 19, 2020 21:03
Show Gist options
  • Save ivamluz/1fdf91b80bcf136da2879547e97c42b7 to your computer and use it in GitHub Desktop.
Save ivamluz/1fdf91b80bcf136da2879547e97c42b7 to your computer and use it in GitHub Desktop.
Scripting for deploying the HTTP-triggered cloud function
#! /bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SOURCE_DIR="${DIR}/../src"
source "${DIR}/.env.local"
gcloud functions \
deploy ${FUNCTION_NAME_HTTP} \
--source=${SOURCE_DIR} \
--runtime=python37 \
--trigger-http \
--allow-unauthenticated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment