-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
40 lines (38 loc) · 1.06 KB
/
cloudbuild.yaml
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
steps:
# Deploy data ingestor
- id: "deploy data ingestor function"
name: "gcr.io/cloud-builders/gcloud"
waitFor: ["-"]
entrypoint: "bash"
args:
- -c
- |
gcloud functions deploy data-ingestor \
--gen2 \
--region europe-west1 \
--runtime python311 \
--source "./src/data_ingestor" \
--entry-point "function_entry_point" \
--trigger-http \
--no-allow-unauthenticated \
--memory 512MiB \
--set-secrets /mnt2/secrets.env=crypto-gpt-env-secrets:9
# Deploy bot
- id: "deploy bot function"
name: "gcr.io/cloud-builders/gcloud"
waitFor: ["-"]
entrypoint: "bash"
args:
- -c
- |
gcloud functions deploy bot \
--gen2 \
--region europe-west1 \
--runtime python311 \
--source "./src/bot" \
--entry-point "function_entry_point" \
--trigger-http \
--no-allow-unauthenticated \
--memory 1GiB \
--set-secrets /mnt2/secrets.env=crypto-gpt-env-secrets:9 \
--timeout 600