Skip to content

Commit

Permalink
Fix CICD Errors (#129)
Browse files Browse the repository at this point in the history
* Fix Backend CI checks

* Update backend cicd workflow

* Install ESlint in github action

* Install ESLint for Github Action

* Configure BE CICD

* Remove global eslint

* Remove unneccessary checks

* Update deployment config
  • Loading branch information
evanyan13 authored Nov 12, 2024
1 parent 518c351 commit 2dad575
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 21 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/backend-ci-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,3 @@ jobs:
npm run build
cd ../..
done
# Lint Check for Each Service
- name: Lint Each Service
run: |
npm install -g eslint
services=("auth-service" "code-execution-service" "collaboration-service" "gateway-service" "matching-service" "question-service" "user-service" "y-websocket-service")
for service in "${services[@]}"; do
echo "Linting $service"
cd backend/$service
npm run lint
cd ../..
done
File renamed without changes.
2 changes: 1 addition & 1 deletion k8s/auth-service/auth-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
containers:
- name: auth-service
image: asia-southeast1-docker.pkg.dev/peerprep-438213/peerprep/auth-service:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3003
envFrom:
Expand Down
2 changes: 1 addition & 1 deletion k8s/code-execution-service/code-execution-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
containers:
- name: code-execution-service
image: asia-southeast1-docker.pkg.dev/peerprep-438213/peerprep/code-execution-service:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3006
envFrom:
Expand Down
2 changes: 1 addition & 1 deletion k8s/collaboration-service/collaboration-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
containers:
- name: collaboration-service
image: asia-southeast1-docker.pkg.dev/peerprep-438213/peerprep/collaboration-service:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3005
envFrom:
Expand Down
2 changes: 1 addition & 1 deletion k8s/gateway-service/gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
containers:
- name: gateway-service
image: asia-southeast1-docker.pkg.dev/peerprep-438213/peerprep/gateway-service:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 4000
env:
Expand Down
2 changes: 1 addition & 1 deletion k8s/matching-service/matching-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
containers:
- name: matching-service
image: asia-southeast1-docker.pkg.dev/peerprep-438213/peerprep/matching-service:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3004
envFrom:
Expand Down
2 changes: 1 addition & 1 deletion k8s/question-service/question-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
containers:
- name: question-service
image: asia-southeast1-docker.pkg.dev/peerprep-438213/peerprep/question-service:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3002
envFrom:
Expand Down
2 changes: 1 addition & 1 deletion k8s/user-service/user-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
containers:
- name: user-service
image: asia-southeast1-docker.pkg.dev/peerprep-438213/peerprep/user-service:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3001
envFrom:
Expand Down
2 changes: 1 addition & 1 deletion k8s/y-websocket-service/y-websocket-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
containers:
- name: y-websocket-service
image: asia-southeast1-docker.pkg.dev/peerprep-438213/peerprep/y-websocket-service:latest
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 4001
envFrom:
Expand Down

0 comments on commit 2dad575

Please sign in to comment.