Skip to content

Commit

Permalink
Merge pull request #118 from CS3219-AY2324S1/change-eval-service-api-key
Browse files Browse the repository at this point in the history
change deployment.yaml for eval-service
  • Loading branch information
wengkit1 authored Nov 14, 2023
2 parents 0149d59 + 0928270 commit b2cc7f5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,21 @@ jobs:
# "collaboration-service" "editor-service" "history-service" "question-service"
- name: Deploy
run: |
microservices=("eval-service")
for service in "${microservices[@]}"
do
echo "Deploying $service"
# Set the image repository and tag in the values file
helm upgrade --install $service ./$service/k8 \
--set image.repository="$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$service" \
--set image.tag="$GITHUB_SHA" \
--values ./$service/k8/$service-values.yaml \
--wait
# Check the rollout status
kubectl rollout status deployment/$service-deployment
# List the services
kubectl get services -o wide
done
# microservices=("")
# for service in "${microservices[@]}"
# do
# echo "Deploying $service"
# # Set the image repository and tag in the values file
# helm upgrade --install $service ./$service/k8 \
# --set image.repository="$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$service" \
# --set image.tag="$GITHUB_SHA" \
# --values ./$service/k8/$service-values.yaml \
# --wait
# # Check the rollout status
# kubectl rollout status deployment/$service-deployment
# # List the services
# kubectl get services -o wide
# done
# echo "Deploying frontend-service"
# helm upgrade --install frontend ./frontend/k8 \
Expand Down
3 changes: 2 additions & 1 deletion eval-service/k8/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ spec:
spec:
containers:
- name: eval-service-container
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
# image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: imrajsingh/eval-service-image
ports:
- containerPort: 7000
env:
Expand Down

0 comments on commit b2cc7f5

Please sign in to comment.