File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
backend/charts/backend-listen Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,16 @@ jobs:
84
84
region : ${{ env.REGION }}
85
85
image : gcr.io/${{ vars.GCP_PROJECT_ID }}/${{ env.SERVICE }}
86
86
87
- - name : Deploy ${{ env.SERVICE }}-listen to Cloud Run
88
- id : deploy-backend-listen
89
- uses : google-github-actions/deploy-cloudrun@v2
90
- with :
91
- service : ${{ env.SERVICE }}-listen
92
- region : ${{ env.REGION }}
93
- image : gcr.io/${{ vars.GCP_PROJECT_ID }}/${{ env.SERVICE }}
87
+ - name : Connect to GKE cluster
88
+ run : |
89
+ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
90
+ echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
91
+ sudo apt-get update && sudo apt-get install google-cloud-cli-gke-gcloud-auth-plugin -y
92
+ gcloud container clusters get-credentials ${{ vars.GKE_CLUSTER }} --region ${{ env.REGION }} --project ${{ vars.GCP_PROJECT_ID }}
93
+
94
+ - name : Deploy ${{ env.SERVICE }}-listen to GKE
95
+ run : |
96
+ kubectl -n ${{ vars.ENV }}-omi-backend rollout restart deploy ${{ vars.ENV }}-omi-backend-listen
94
97
95
98
- name : Deploy ${{ env.SERVICE }}-integration to Cloud Run
96
99
id : deploy-backend-integration
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ replicaCount: 1
9
9
image :
10
10
repository : gcr.io/based-hardware-dev/backend
11
11
# This sets the pull policy for images.
12
- pullPolicy : IfNotPresent
12
+ pullPolicy : Always
13
13
# Overrides the image tag whose default is the chart appVersion.
14
14
tag : " latest"
15
15
You can’t perform that action at this time.
0 commit comments