Skip to content

Commit

Permalink
Enable the --promote flag in mlab-ns (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinaleonr authored Feb 27, 2023
1 parent 7ee735f commit 5d207d8
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions cloudbuild/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ steps:
- go test ./... -race
- go test -v ./...

# Deployment of APIs in sandbox & staging.
# Deployment of APIs in sandbox, staging, and mlab-ns.
- name: gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.18
env:
# Use cbif condition: only run these steps in one of these projects.
- PROJECT_IN=mlab-sandbox,mlab-staging
- PROJECT_IN=mlab-sandbox,mlab-staging,mlab-ns
args:
- cp cloudbuild/app.yaml.template app.yaml
- >
Expand All @@ -34,21 +34,3 @@ steps:
# After deploying the new service, deploy the openapi spec.
- sed -i -e 's/{{PROJECT}}/$PROJECT_ID/' openapi.yaml
- gcloud endpoints services deploy openapi.yaml

# Deployment of APIs in mlab-ns.
- name: gcr.io/$PROJECT_ID/gcloud-jsonnet-cbif:1.18
env:
# Use cbif condition: only run these steps in one of these projects.
- PROJECT_IN=mlab-ns
args:
- cp cloudbuild/app.yaml.template app.yaml
- >
sed -i
-e 's/{{PROJECT}}/$PROJECT_ID/g'
-e 's/{{PLATFORM_PROJECT}}/$_PLATFORM_PROJECT/'
-e 's/{{REDIS_ADDRESS}}/$_REDIS_ADDRESS/'
app.yaml
- gcloud --project $PROJECT_ID app deploy --no-promote app.yaml
# After deploying the new service, deploy the openapi spec.
- sed -i -e 's/{{PROJECT}}/$PROJECT_ID/' openapi.yaml
- gcloud endpoints services deploy openapi.yaml

0 comments on commit 5d207d8

Please sign in to comment.