Skip to content

Commit

Permalink
Merge pull request bcgov#57 from pwei1018/CD-upgrade
Browse files Browse the repository at this point in the history
Upgrade backend CD pipeline.
  • Loading branch information
pwei1018 authored Jul 17, 2024
2 parents c13bf85 + 21bc24b commit 1022260
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/strr-api-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:

jobs:
strr-api-cd:
uses: bcgov/bcregistry-sre/.github/workflows/cloud-run-service-cd.yaml@main
uses: bcgov/bcregistry-sre/.github/workflows/backend-cd.yaml@main
with:
target: ${{ inputs.target }}
app_name: "strr-api"
Expand Down
95 changes: 0 additions & 95 deletions strr-api/devops/gcp/clouddeploy-targets.yaml

This file was deleted.

75 changes: 75 additions & 0 deletions strr-api/devops/gcp/clouddeploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: deploy.cloud.google.com/v1
kind: DeliveryPipeline
metadata:
name: strr-api-pipeline
description: Deployment pipeline
serialPipeline:
stages:
- targetId: bcrbk9-dev
profiles: [dev]
strategy:
standard:
verify: false
deployParameters:
- values:
deploy-env: "development"
deploy-project-id: "bcrbk9-dev"
service-name: "strr-api-dev"
container-name: "strr-api-dev"
cloudsql-instances: "bcrbk9-dev:northamerica-northeast1:strr-db-dev"
service-account: "sa-api@bcrbk9-dev.iam.gserviceaccount.com"
- targetId: bcrbk9-test
profiles: [test]
strategy:
standard:
verify: false
deployParameters:
- values:
deploy-env: "test"
deploy-project-id: "bcrbk9-test"
service-name: "strr-api-test"
container-name: "strr-api-test"
cloudsql-instances: "bcrbk9-test:northamerica-northeast1:strr-db-test"
service-account: "sa-api@bcrbk9-test.iam.gserviceaccount.com"
- targetId: bcrbk9-sandbox
profiles: [sandbox]
strategy:
standard:
verify: false
deployParameters:
- values:
deploy-env: "sandbox"
deploy-project-id: "bcrbk9-tools"
service-name: "strr-api-sandbox"
container-name: "strr-api-sandbox"
cloudsql-instances: "bcrbk9-tools:northamerica-northeast1:strr-db-sandbox"
service-account: "sa-api@bcrbk9-tools.iam.gserviceaccount.com"
- targetId: bcrbk9-prod
profiles: [prod]
strategy:
standard:
verify: false
deployParameters:
- values:
deploy-env: "production"
deploy-project-id: "bcrbk9-prod"
service-name: "strr-api-prod"
container-name: "strr-api-prod"
cloudsql-instances: "bcrbk9-prod:northamerica-northeast1:strr-db-prod"
service-account: "sa-api@bcrbk9-prod.iam.gserviceaccount.com"
max-scale: "10"
container-concurrency: "20"

0 comments on commit 1022260

Please sign in to comment.