Skip to content

Commit ca2430c

Browse files
authored
Merge pull request #57 from jonchenn/sb-vars
added sb-vars and updated copier raw scope for GHA yamls
2 parents 7418eb2 + 6473a02 commit ca2430c

10 files changed

+30
-17
lines changed

.github/workflows/e2e_gke_api_test.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4+
# copier:raw
5+
46
name: E2E API Tests on GKE Microservices
57
on:
68
pull_request:
@@ -21,7 +23,6 @@ env:
2123
SKAFFOLD_VERSION: 2.4.0
2224
SKAFFOLD_CACHE_GCS: gs://artifacts.gcp-mira-demo.appspot.com/skaffold/cache
2325

24-
# copier:raw
2526
jobs:
2627
deploy:
2728
name: Deploy all microservices in PR namespace

.github/workflows/unit_test_linter_authentication.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4+
# copier:raw
5+
46
name: Unit test & lint for Authentication Service
57
on:
68
push:
@@ -20,7 +22,6 @@ on:
2022
env:
2123
PROJECT_ID: ${{ vars.PROJECT_ID }}
2224

23-
# copier:raw
2425
jobs:
2526
unit-test:
2627
runs-on: ubuntu-latest

.github/workflows/unit_test_linter_common.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4+
# copier:raw
5+
46
name: Unit test & linter for Common
57
on:
68
push:
@@ -18,7 +20,6 @@ on:
1820
env:
1921
PROJECT_ID: ${{ vars.PROJECT_ID }}
2022

21-
# copier:raw
2223
jobs:
2324
unit-test:
2425
environment: dev

.github/workflows/unit_test_linter_jobs_service.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4+
# copier:raw
5+
46
name: Unit test & lint for Jobs Service
57
on:
68
push:
@@ -20,7 +22,6 @@ on:
2022
env:
2123
PROJECT_ID: ${{ vars.PROJECT_ID }}
2224

23-
# copier:raw
2425
jobs:
2526
unit-test:
2627
runs-on: ubuntu-latest

.github/workflows/unit_test_linter_llm_service.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4+
# copier:raw
5+
46
name: Unit test & lint for LLM Service
57
on:
68
push:
@@ -20,7 +22,6 @@ on:
2022
env:
2123
PROJECT_ID: ${{ vars.PROJECT_ID }}
2224

23-
# copier:raw
2425
jobs:
2526
unit-test:
2627
runs-on: ubuntu-latest

.github/workflows/unit_test_linter_rules_engine.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4+
# copier:raw
5+
46
name: Unit test & lint for Rules Engine
57
on:
68
push:
@@ -27,7 +29,6 @@ jobs:
2729
matrix:
2830
python-version: [3.9]
2931
target-folder: [components/rules_engine]
30-
# copier:raw
3132
steps:
3233
- uses: actions/checkout@v3
3334

@@ -97,4 +98,4 @@ jobs:
9798
cd ${{ matrix.target-folder }}/src
9899
python -m pylint $(git ls-files '*.py') --rcfile=$BASE_DIR/.pylintrc
99100
100-
# copier:endraw
101+
# copier:endraw

.github/workflows/unit_test_linter_user_management.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4+
# copier:raw
5+
46
name: Unit test & lint for User Management Service
57
on:
68
push:
@@ -20,7 +22,6 @@ on:
2022
env:
2123
PROJECT_ID: ${{ vars.PROJECT_ID }}
2224

23-
# copier:raw
2425
jobs:
2526
unit-test:
2627
runs-on: ubuntu-latest

ingress/kustomize/gke/managed_cert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: default-managed-cert
55
spec:
66
domains:
7-
- # Fill in your Domain name
7+
- example.com # sb-var:domain_name

sb.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ components:
4141
custom_component: true
4242
init_script_path: ./components/user_management/src/utils/init.py
4343
created_at: 2023-Jul-19 19:00:45 UTC
44+
global_variables:
45+
cluster_ca_certificate: ''
46+
cluster_external_endpoint: ''
47+
domain_name: example.com
48+
project_id: your-project-id
49+
project_name: core-solution-services
50+
project_number: your-project-number
4451
modified_at: 2023-Jul-19 19:00:45 UTC
45-
project_id: your-project-id
46-
project_name: core-solution-services
47-
project_number: your-project-number
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
project_id = "your-project-id"
2-
region = "us-central1"
1+
project_id = "your-project-id" # sb-var:project_id
2+
region = "us-central1" # sb-var:gcp_region
33
cluster_name = "main-cluster"
4-
cluster_external_endpoint = ""
5-
cluster_ca_certificate = ""
4+
cluster_external_endpoint = "" # sb-var:cluster_external_endpoint
5+
cluster_ca_certificate = "" # sb-var:cluster_ca_certificate
66
managed_cert_name = "managed-cert"
77
frontend_config_name = "default-frontend-config"
8-
domains = []
8+
domains = [
9+
"example.com" # sb-var:domain_name
10+
]

0 commit comments

Comments
 (0)