90
90
bucket_name=$(gcloud secrets versions access latest --secret="agents-bucket-name")
91
91
small_google_model=$(gcloud secrets versions access latest --secret="small-google-model")
92
92
medium_google_model=$(gcloud secrets versions access latest --secret="medium-google-model")
93
- google_generative_api =$(gcloud secrets versions access latest --secret="google-generative-ai-key)
93
+ google_generative_api_key =$(gcloud secrets versions access latest --secret="google-generative-ai-key" )
94
94
echo "Working with instance: ${full_name}"
95
95
echo "Checking for existing instance..."
96
96
if [[ $(gcloud compute instances list --filter="name=${full_name}" --format="get(name)") ]]; then
@@ -101,7 +101,7 @@ steps:
101
101
CHARACTER_FILE=${_CHARACTER_FILE},\
102
102
SMALL_GOOGLE_MODEL=${small_google_model},\
103
103
MEDIUM_GOOGLE_MODEL=${medium_google_model},\
104
- GOOGLE_GENERATIVE_AI_API_KEY=${google_generative_api } \
104
+ GOOGLE_GENERATIVE_AI_API_KEY=${google_generative_api_key } \
105
105
--zone $_ZONE || { echo "Instance update failed"; exit 1; }
106
106
echo "Instance update completed"
107
107
else
@@ -118,7 +118,7 @@ steps:
118
118
CHARACTER_FILE=${_CHARACTER_FILE},\
119
119
SMALL_GOOGLE_MODEL=${small_google_model},\
120
120
MEDIUM_GOOGLE_MODEL=${medium_google_model},\
121
- GOOGLE_GENERATIVE_AI_API_KEY=${google_generative_api } \
121
+ GOOGLE_GENERATIVE_AI_API_KEY=${google_generative_api_key } \
122
122
--metadata-from-file startup-script=startup.sh || { echo "Instance creation failed"; exit 1; }
123
123
echo "Instance creation completed"
124
124
fi
0 commit comments