Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cloudbuild/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ steps:
-e 's/{{EARLY_EXIT_CLIENTS}}/$_EARLY_EXIT_CLIENTS/'
app.yaml
- gcloud --project $PROJECT_ID app deploy --no-promote app.yaml
- gcloud --project $PROJECT_ID app deploy dispatch.yaml
# After deploying the new service, deploy the openapi spec.
- sed -i -e 's/{{PROJECT}}/$PROJECT_ID/' -e 's/{{PLATFORM_PROJECT}}/$_PLATFORM_PROJECT/' -e 's/{{DEPLOYMENT}}/Production/' openapi.yaml
- gcloud endpoints services deploy openapi.yaml
11 changes: 11 additions & 0 deletions dispatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# A project may have up to 20 dispatch rules.
# See also: https://cloud.google.com/appengine/docs/standard/go/reference/dispatch-yaml
dispatch:
# Route /v2/ requests to the locate service.
- service: locate
url: "*/v2beta1/*"
- service: locate
url: "*/v2beta2/*"
- service: locate
url: "*/v2/*"
# All other requests are routed to their default target.