Skip to content

Commit 6225c9d

Browse files
authored
Merge pull request #105 from AET-DevOps25/feature/convert-server-to-ms
Feature/convert server to ms
2 parents 815a569 + 33e702c commit 6225c9d

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

.github/workflows/ci-cd.yml

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -231,35 +231,34 @@ jobs:
231231

232232
#-------- Deploy Services on k8s cluster via helm -----------------------------#
233233

234-
# Lets skip deployment for now
235-
# helm-deploy:
236-
# needs:
237-
# [
238-
# detect-changes,
239-
# docker-release-genai,
240-
# docker-release-server,
241-
# docker-release-client,
242-
# ]
243-
# if: |
244-
# always() && github.ref == 'refs/heads/main'
245-
# runs-on: ubuntu-latest
246-
# steps:
247-
# - name: Checkout code
248-
# uses: actions/checkout@v4
249-
250-
# - name: Set up Helm
251-
# uses: azure/setup-helm@v3
252-
253-
# - name: Set up Kubeconfig
254-
# run: |
255-
# mkdir -p ~/.kube
256-
# echo "${{ secrets.KUBE_CONFIG }}" > ~/.kube/config
257-
# chmod 600 ~/.kube/config
258-
259-
# - name: Deploy with Helm
260-
# run: |
261-
# helm -n team-continuous-disappointment upgrade recip-ai ./recipai-chart \
262-
# --set secrets.gitlabClientSecret="${{ secrets.PROD_CLIENT_SECRET }}" \
263-
# --set secrets.mongodbAdminPassword="${{ secrets.MONGODB_ADMIN_PASSWORD }}" \
264-
# --set secrets.apiOpenai="${{ secrets.API_OPENAI }}" \
265-
# --set secrets.apiOpenwebui="${{ secrets.API_OPENWEBUI }}"
234+
helm-deploy:
235+
needs:
236+
[
237+
detect-changes,
238+
docker-release-genai,
239+
docker-release-server,
240+
docker-release-client,
241+
]
242+
if: |
243+
always() && github.ref == 'refs/heads/main'
244+
runs-on: ubuntu-latest
245+
steps:
246+
- name: Checkout code
247+
uses: actions/checkout@v4
248+
249+
- name: Set up Helm
250+
uses: azure/setup-helm@v3
251+
252+
- name: Set up Kubeconfig
253+
run: |
254+
mkdir -p ~/.kube
255+
echo "${{ secrets.KUBE_CONFIG }}" > ~/.kube/config
256+
chmod 600 ~/.kube/config
257+
258+
- name: Deploy with Helm
259+
run: |
260+
helm -n team-continuous-disappointment upgrade recip-ai ./recipai-chart \
261+
--set secrets.gitlabClientSecret="${{ secrets.PROD_CLIENT_SECRET }}" \
262+
--set secrets.mongodbAdminPassword="${{ secrets.MONGODB_ADMIN_PASSWORD }}" \
263+
--set secrets.apiOpenai="${{ secrets.API_OPENAI }}" \
264+
--set secrets.apiOpenwebui="${{ secrets.API_OPENWEBUI }}"

client/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ server {
99
}
1010

1111
location /api/ {
12-
proxy_pass http://server-service:8080/;
12+
proxy_pass http://apigw-service:8080/;
1313
proxy_set_header Host $host;
1414
proxy_set_header X-Real-IP $remote_addr;
1515
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

0 commit comments

Comments
 (0)