@@ -17,11 +17,11 @@ steps:
1717 - go test ./... -race
1818 - go test -v ./...
1919
20- # Deployment of APIs in sandbox, staging, and mlab-ns .
20+ # Deployment of APIs in sandbox & staging .
2121- name : gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.18
2222 env :
2323 # Use cbif condition: only run these steps in one of these projects.
24- - PROJECT_IN=mlab-sandbox,mlab-staging,mlab-ns
24+ - PROJECT_IN=mlab-sandbox,mlab-staging
2525 args :
2626 - cp cloudbuild/app.yaml.template app.yaml
2727 - >
@@ -34,3 +34,21 @@ steps:
3434 # After deploying the new service, deploy the openapi spec.
3535 - sed -i -e 's/{{PROJECT}}/$PROJECT_ID/' openapi.yaml
3636 - gcloud endpoints services deploy openapi.yaml
37+
38+ # Deployment of APIs in mlab-ns.
39+ - name : gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.18
40+ env :
41+ # Use cbif condition: only run these steps in one of these projects.
42+ - PROJECT_IN=mlab-ns
43+ args :
44+ - cp cloudbuild/app.yaml.template app.yaml
45+ - >
46+ sed -i
47+ -e 's/{{PROJECT}}/$PROJECT_ID/g'
48+ -e 's/{{PLATFORM_PROJECT}}/$_PLATFORM_PROJECT/'
49+ -e 's/{{REDIS_ADDRESS}}/$_REDIS_ADDRESS/'
50+ app.yaml
51+ - gcloud --project $PROJECT_ID app deploy --no-promote app.yaml
52+ # After deploying the new service, deploy the openapi spec.
53+ - sed -i -e 's/{{PROJECT}}/$PROJECT_ID/' openapi.yaml
54+ - gcloud endpoints services deploy openapi.yaml
0 commit comments