2
2
# Build the image, create ancillary resources, and deploy the module as a Cloud Run service.
3
3
#
4
4
# --------- Example usage -----------------------
5
- # First, double check the values in env.yaml. Then:
5
+ #
6
+ # First, double check the values in env.yaml. Then:
7
+ #
6
8
# $ 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
+ #
9
12
# -----------------------------------------------
10
13
11
14
# --------- Set environment variables -----------
@@ -31,9 +34,12 @@ check_env_vars PROJECT_ID _SURVEY _TESTID MODULE_NAME_STEM MODULE_ROUTE REGION R
31
34
32
35
# Construct and export additional environment variables for cloudbuild.yaml.
33
36
# 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 "
37
43
# -----------------------------------------------
38
44
39
45
# --------- Project setup -----------------------
0 commit comments