-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
44 lines (40 loc) · 1.38 KB
/
cloudbuild.yaml
File metadata and controls
44 lines (40 loc) · 1.38 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
steps:
# 1. Build the Reactive Engine Container
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/reactive-engine', '.']
# 2. Push to Artifact Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/reactive-engine']
# 3. Deploy to Cloud Run (The Antigravity Core)
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args:
- 'run'
- 'deploy'
- 'antigravity-service'
- '--image'
- 'gcr.io/$PROJECT_ID/reactive-engine'
- '--region'
- 'asia-southeast1' # Singapore Latency Optimization
- '--allow-unauthenticated'
- '--min-instances'
- '1' # Warm Pool: Mitigate Cold Starts
# 4. Deploy Backend (The Recursive Engine)
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'bash'
args:
- '-c'
- |
cd functions && \
npm install && \
gcloud functions deploy antigravity-engine \
--gen2 \
--region=asia-southeast1 \
--runtime=nodejs22 \
--source=. \
--entry-point=onIntentCreated \
--trigger-event-filters=type=google.cloud.firestore.document.v1.created \
--trigger-event-filters=database='(default)' \
--trigger-event-filters=document='Latent_Events/{eventId}'
images:
- 'gcr.io/$PROJECT_ID/reactive-engine'