22# Build the image, create ancillary resources, and deploy the module as a Cloud Run service.
33#
44# --------- Example usage -----------------------
5- # First, double check the values in env.yaml. Then:
5+ #
6+ # First, double check the values in env.yaml. Then:
7+ #
68# $ gcloud auth ...
7- # $ export PROJECT_ID=... (is this set automatically by gcloud auth?)
8- # $ bash deploy.sh
9+ # $ export PROJECT_ID=... (Is this set automatically by gcloud auth?)
10+ # $ bash deploy.sh # That's it. All variables retrieved from env.yaml.
11+ #
912# -----------------------------------------------
1013
1114# --------- Set environment variables -----------
@@ -31,9 +34,12 @@ check_env_vars PROJECT_ID _SURVEY _TESTID MODULE_NAME_STEM MODULE_ROUTE REGION R
3134
3235# Construct and export additional environment variables for cloudbuild.yaml.
3336# Environment variables that will be used by cloudbuild.yaml must start with "_", per GCP's requirements.
34- export _MODULE_NAME=$( construct-name.sh --stem " $MODULE_NAME_STEM " )
35- export _REPOSITORY=$( construct-name.sh --stem " $REPOSITORY_STEM " )
36- export _TRIGGER_TOPIC=$( construct-name.sh --stem " $TRIGGER_TOPIC_STEM " )
37+ _MODULE_NAME=$( construct-name.sh --stem " $MODULE_NAME_STEM " )
38+ export _MODULE_NAME=" $_MODULE_NAME "
39+ _REPOSITORY=$( construct-name.sh --stem " $REPOSITORY_STEM " )
40+ export _REPOSITORY=" $_REPOSITORY "
41+ _TRIGGER_TOPIC=$( construct-name.sh --stem " $TRIGGER_TOPIC_STEM " )
42+ export _TRIGGER_TOPIC=" $_TRIGGER_TOPIC "
3743# -----------------------------------------------
3844
3945# --------- Project setup -----------------------
0 commit comments