File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
- main
12
12
13
13
env :
14
+ IS_GKE_CLUSTER_UP : true
14
15
DOCKER_REGISTRY_USN : ay2425s1cs3219g16
15
16
USER_EXPRESS_PORT : 9001
16
17
QUESTION_EXPRESS_PORT : 9002
@@ -188,21 +189,21 @@ jobs:
188
189
189
190
- name : Setup GCloud
190
191
uses : google-github-actions/setup-gcloud@v2
191
- if : ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' && secrets.GKE_CLUSTER }}
192
+ if : ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' && env.IS_GKE_CLUSTER_UP }}
192
193
with :
193
194
service_account_key : ${{ secrets.GKE_SA_KEY }}
194
195
project_id : ${{ secrets.GKE_PROJECT }}
195
196
196
197
- name : Get GKE creds
197
198
uses : google-github-actions/get-gke-credentials@v2
198
- if : ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' && secrets.GKE_CLUSTER }}
199
+ if : ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' && env.IS_GKE_CLUSTER_UP }}
199
200
with :
200
201
cluster_name : ${{ secrets.GKE_CLUSTER }}
201
202
location : ${{ secrets.GKE_ZONE }}
202
203
credentials : ${{ secrets.GKE_SA_KEY }}
203
204
204
205
- name : Deploy to GKE
205
- if : ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' && secrets.GKE_CLUSTER }}
206
+ if : ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' && env.IS_GKE_CLUSTER_UP }}
206
207
run : |-
207
208
deployments=("collab-service" "matching-service" "question-service" "user-service" "frontend")
208
209
for dplymnt in "${deployments[@]}"; do
You can’t perform that action at this time.
0 commit comments