Skip to content

Commit 36bb491

Browse files
committed
Fix GEE auth issue
1 parent 040a714 commit 36bb491

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Auto Deploy to Google Cloud
33
on:
44
push:
55
branches:
6-
- main
6+
- fix/gee-auth
77

88
jobs:
99
deploy:
@@ -61,6 +61,8 @@ jobs:
6161
working-directory: ./backend
6262
env:
6363
API_BASE_URL: "http://127.0.0.1:8000"
64+
GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS: ${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS }}
65+
GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL: ${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL }}
6466
run: |
6567
python -m pip install --upgrade pip
6668
pip install -r requirements-dev.txt
@@ -81,7 +83,10 @@ jobs:
8183
--allow-unauthenticated \
8284
--platform=managed \
8385
--min-instances=1 \
84-
--max-instances=5
86+
--max-instances=5 \
87+
--set-env-vars "GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS=${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_CREDENTIALS }}" \
88+
--set-env-vars "GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL=${{ secrets.GOOGLE_EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL }}"
89+
8590
8691
# Step 9: Build and Deploy the frontend
8792
- name: Build Docker image (frontend)

0 commit comments

Comments
 (0)