Skip to content

Commit

Permalink
Merge pull request #45 from CS3219-AY2425S1/fix-deployment
Browse files Browse the repository at this point in the history
fix deployment
  • Loading branch information
guowei42 authored Nov 10, 2024
2 parents 0342ef8 + 4933cea commit d78ac44
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-collab-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ env:
GKE_CLUSTER: peerprep-cluster-1
GKE_ZONE: asia-southeast1
REPOSITORY_NAME: peerprep
SERVICE: collab-service
K8_DIR: collab-service
SERVICE: collaboration-service
IMAGE: collaboration

jobs:
Expand Down Expand Up @@ -68,6 +69,6 @@ jobs:
# Deploy the Docker image to the GKE cluster
- name: Deploy
run: |-
kubectl apply -f kubernetes/${SERVICE}
kubectl rollout status deployment/${SERVICE}
kubectl apply -f kubernetes/${K8_DIR}
kubectl rollout status deployment/${K8_DIR}
kubectl get services -o wide
7 changes: 4 additions & 3 deletions .github/workflows/deploy-matching-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ env:
GKE_CLUSTER: peerprep-cluster-1
GKE_ZONE: asia-southeast1
REPOSITORY_NAME: peerprep
SERVICE: match-service
K8_DIR: match-service
SERVICE: matching-service
IMAGE: matching

jobs:
Expand Down Expand Up @@ -68,6 +69,6 @@ jobs:
# Deploy the Docker image to the GKE cluster
- name: Deploy
run: |-
kubectl apply -f kubernetes/${SERVICE}
kubectl rollout status deployment/${SERVICE}
kubectl apply -f kubernetes/${K8_DIR}
kubectl rollout status deployment/${K8_DIR}
kubectl get services -o wide
7 changes: 4 additions & 3 deletions .github/workflows/deploy-question-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ env:
GKE_CLUSTER: peerprep-cluster-1
GKE_ZONE: asia-southeast1
REPOSITORY_NAME: peerprep
SERVICE: qn-service
K8_DIR: qn-service
SERVICE: question-service
IMAGE: questions

jobs:
Expand Down Expand Up @@ -68,6 +69,6 @@ jobs:
# Deploy the Docker image to the GKE cluster
- name: Deploy
run: |-
kubectl apply -f kubernetes/${SERVICE}
kubectl rollout status deployment/${SERVICE}
kubectl apply -f kubernetes/${K8_DIR}
kubectl rollout status deployment/${K8_DIR}
kubectl get services -o wide
5 changes: 1 addition & 4 deletions client/src/components/CollaborationPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@ function CollaborationPage() {
if (initialCode) {
setValue(initialCode);
}





return () => {
collaborationSocket.off("code_change");
collaborationSocket.off("code_update");
Expand Down

0 comments on commit d78ac44

Please sign in to comment.