Skip to content

Commit bd930d7

Browse files
authored
Merge pull request #66 from jonchenn/sb-vars
fix gha deployment with sb vars
2 parents ca2430c + 139fd3e commit bd930d7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/deployment_gke_dev.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ on:
1313

1414
env:
1515
PROJECT_ID: ${{ vars.PROJECT_ID }}
16-
SKAFFOLD_DEFAULT_REPO: gcr.io/gcp-mira-demo
16+
SKAFFOLD_DEFAULT_REPO: gcr.io/${{ vars.PROJECT_ID }}
1717
SKAFFOLD_NAMESPACE: ${{ vars.GKE_NAMESPACE }}
18+
DOMAIN_NAME: ${{ vars.DOMAIN_NAME }}
1819
GKE_CLUSTER: main-cluster
1920
GKE_REGION: us-central1
2021
KUSTOMIZE_VERSION: 5.0.0
2122
SKAFFOLD_VERSION: 2.4.0
22-
SKAFFOLD_CACHE_GCS: gs://artifacts.gcp-mira-demo.appspot.com/skaffold/cache
23+
SKAFFOLD_CACHE_GCS: gs://artifacts.${{ vars.PROJECT_ID }}.appspot.com/skaffold/cache
2324

2425
jobs:
2526
deploy_backends:
@@ -62,6 +63,7 @@ jobs:
6263
- name: Update the project id in config files
6364
run: |
6465
sb set project-id $PROJECT_ID --yes
66+
sb vars set domain_name $DOMAIN_NAME
6567
6668
- name: Retrieve Firebase API key
6769
run: |

sb.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ global_variables:
4545
cluster_ca_certificate: ''
4646
cluster_external_endpoint: ''
4747
domain_name: example.com
48-
project_id: your-project-id
49-
project_name: core-solution-services
50-
project_number: your-project-number
5148
modified_at: 2023-Jul-19 19:00:45 UTC
49+
project_id: your-project-id
50+
project_name: core-solution-services
51+
project_number: your-project-number

0 commit comments

Comments
 (0)