-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
33 lines (33 loc) · 936 Bytes
/
cloudbuild.yaml
File metadata and controls
33 lines (33 loc) · 936 Bytes
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
steps:
# TODO: Fix the fact that this gc project name is hardcoded right now
# Build the container image
- name: "gcr.io/cloud-builders/docker"
args: ["build", "-t", "gcr.io/spacydrugner/model_api", "."]
# waitFor: ['download-model']
# Push the container image to Container Registry
- name: "gcr.io/cloud-builders/docker"
args: ["push", "gcr.io/spacydrugner/model_api"]
# Deploy container image to Cloud Run
- name: "gcr.io/cloud-builders/gcloud"
args:
[
"beta",
"run",
"deploy",
"model-api",
"--image",
"gcr.io/spacydrugner/model_api",
"--region",
"us-east1",
"--platform",
"managed",
"--memory",
"3000Mi",
"--allow-unauthenticated",
"--max-instances",
"5",
"--update-env-vars",
"WANDB_API_KEY=${_WANDB_API_KEY}",
]
images:
- gcr.io/spacydrugner/model_api