Skip to content

Commit

Permalink
add mongo config for CD (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmyMi authored Dec 15, 2021
1 parent 0852d5b commit 191d77a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app-cloudbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ steps:
- --concurrency=80
- --set-env-vars=ASPNETCORE_ENVIRONMENT=Google
- --set-env-vars=Elasticsearch__User=oos_api
- --set-env-vars=ConnectionStrings__ExternalImageStorage__DatabaseName=outofschool
# Cloud Run fails to set the variable as an array :(
# Using index instead
- --set-env-vars=Elasticsearch__Urls__0=https://elastic.dmytrominochkin.cloud/
- --set-secrets=ConnectionStrings__DefaultConnection=$_CONN_STRING_SECRET,Elasticsearch__Password=$_ES_PASSWORD
- --set-secrets=ConnectionStrings__DefaultConnection=$_CONN_STRING_SECRET,Elasticsearch__Password=$_ES_PASSWORD,ConnectionStrings__ExternalImageStorage__ServerName=$_MONGO_SECRET
# Disable http2 because prod will be http1.1 for now
- --no-use-http2
# Clean old versions except previous Cloud Run
Expand Down

0 comments on commit 191d77a

Please sign in to comment.