Skip to content

Commit 205d9bc

Browse files
committed
ci: add QEMU/Buildx for arm64 cross-platform build
1 parent 9b082c4 commit 205d9bc

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/backend-ci-cd.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ jobs:
6868
- name: Checkout Code
6969
uses: actions/checkout@v4
7070

71+
- name: Set up QEMU
72+
uses: docker/setup-qemu-action@v3
73+
74+
- name: Set up Docker Buildx
75+
uses: docker/setup-buildx-action@v3
76+
7177
- name: Configure AWS Credentials
7278
uses: aws-actions/configure-aws-credentials@v4
7379
with:
@@ -88,11 +94,13 @@ jobs:
8894
# Build a docker container and push it to ECR
8995
# Using --platform linux/arm64 for Lambda compatibility
9096
cd backend
91-
docker build --platform linux/arm64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
92-
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
97+
docker buildx build --platform linux/arm64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --push .
9398
9499
- name: Update Lambda Function
100+
env:
101+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
102+
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY }}
95103
run: |
96104
aws lambda update-function-code \
97105
--function-name ${{ secrets.LAMBDA_FUNCTION_NAME }} \
98-
--image-uri ${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY }}:latest
106+
--image-uri $ECR_REGISTRY/$ECR_REPOSITORY:latest

backend/app/ai/email_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def send_detailed_analysis_email(
405405
"total_matches": len(colleges),
406406
"high_chance_count": high_chance,
407407
"branches_count": len(branches),
408-
"colleges": colleges[:15], # Top 15
408+
"colleges": colleges[:50],
409409
"branch_distribution": branch_distribution or [],
410410
"generation_date": datetime.now(),
411411
"chat_url": _get_chat_url(session_id),

0 commit comments

Comments
 (0)