Created
July 19, 2020 21:04
-
-
Save ivamluz/69ac550b8090b0115b45f755008e57ef to your computer and use it in GitHub Desktop.
Scripting for deploying the Pub/Sub-triggered cloud function
This file contains 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
#! /bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
SOURCE_DIR="${DIR}/../src" | |
source "${DIR}/.env.local" | |
gcloud functions \ | |
deploy ${FUNCTION_NAME_PUBSUB} \ | |
--source=${SOURCE_DIR} \ | |
--runtime=python37 \ | |
--trigger-topic=${PUBSUB_TOPIC} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment