-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
45 lines (41 loc) · 1.91 KB
/
Copy pathcloudbuild.yaml
File metadata and controls
45 lines (41 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
steps:
# 1. Build container image from neurodecode_backend subdirectory
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/neurodecode-backend'
- './neurodecode_backend'
# 2. Push image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args:
- 'push'
- 'gcr.io/$PROJECT_ID/neurodecode-backend'
# 3. Deploy to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args:
- 'run'
- 'deploy'
- 'neurodecode-backend'
- '--image'
- 'gcr.io/$PROJECT_ID/neurodecode-backend'
- '--region'
- 'asia-southeast1'
- '--platform'
- 'managed'
- '--allow-unauthenticated'
- '--timeout'
- '3600'
- '--concurrency'
- '1'
- '--memory'
- '4Gi'
- '--set-secrets'
- 'GEMINI_API_KEY=neurodecode-gemini-api-key:latest,NEURODECODE_ADMIN_DEBUG_TOKEN=neurodecode-admin-debug-token:latest,TELEGRAM_BOT_TOKEN=neurodecode-telegram-bot-token:latest,TELEGRAM_CHAT_ID=neurodecode-telegram-chat-id:latest,NEURODECODE_ADMIN_SECRET=neurodecode-admin-secret:latest,NEURODECODE_A2A_API_KEY=neurodecode-a2a-api-key:latest'
- '--set-env-vars'
- 'NEURODECODE_FIRESTORE_ENABLED=1,NEURODECODE_FIRESTORE_COLLECTION=sessions,NEURODECODE_SUMMARY_MODEL=gemini-2.5-flash-lite,NEURODECODE_ADMIN_DEBUG_ENABLED=1,NEURODECODE_ADMIN_DEBUG_MAX_ITEMS=500,NEURODECODE_FCM_ENABLED=1,NEURODECODE_FIRESTORE_PUSH_DEVICE_COLLECTION=push_device_tokens,NEURODECODE_FOLLOWUP_MIN_DURATION_SECONDS=120,NEURODECODE_ENABLE_PROFILE_MEMORY_CONTEXT=1,NEURODECODE_FIRESTORE_PROJECT=gen-lang-client-0348071142,NEURODECODE_A2A_URL=https://neurodecode-a2a-jzfv6ygw3q-as.a.run.app,NEURODECODE_A2A_SKILL_ENRICHMENT=1,NEURODECODE_AUTH_COMPAT_DEADLINE_UTC=2026-09-28T00:00:00+00:00'
images:
- 'gcr.io/$PROJECT_ID/neurodecode-backend'
options:
logging: CLOUD_LOGGING_ONLY