Skip to content

Commit 8ed9bcd

Browse files
committed
fix(ci): disable LFS fetch (budget exhausted); wire Google Maps key into build
- CI checkout no longer pulls the 254MB flood model via LFS; the repo's LFS bandwidth budget is exceeded and tests use the synthetic/demo fallback exactly like production does - Dockerfile accepts VITE_GOOGLE_MAPS_API_KEY as a build arg so the Vite build bakes in the Maps browser key, enabling the region picker - deploy workflow forwards the key from repo secrets
1 parent 1b3f7c0 commit 8ed9bcd

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v7
1616
with:
17-
lfs: true
17+
# LFS disabled: the repo's LFS bandwidth budget is exhausted and the
18+
# 254MB flood model isn't needed for tests (code falls back to the
19+
# synthetic/demo model path, same as production).
20+
lfs: false
1821

1922
- name: Set up Python
2023
uses: actions/setup-python@v6

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ jobs:
4343
- name: Deploy to Fly.io
4444
env:
4545
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
46-
run: flyctl deploy --remote-only --ha=false --wait-timeout 600
46+
VITE_GOOGLE_MAPS_API_KEY: ${{ secrets.VITE_GOOGLE_MAPS_API_KEY }}
47+
run: >-
48+
flyctl deploy --remote-only --ha=false --wait-timeout 600
49+
--build-arg VITE_GOOGLE_MAPS_API_KEY="$VITE_GOOGLE_MAPS_API_KEY"
4750
4851
- name: Show status
4952
env:

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ RUN npm ci
1313

1414
COPY frontend/ ./
1515
ENV VITE_API_BASE_URL=
16+
# Google Maps browser key is baked in at build time (Vite inlines import.meta.env).
17+
ARG VITE_GOOGLE_MAPS_API_KEY=
18+
ENV VITE_GOOGLE_MAPS_API_KEY=$VITE_GOOGLE_MAPS_API_KEY
1619
RUN npm run build
1720

1821
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)