-
Notifications
You must be signed in to change notification settings - Fork 0
/
serving.yaml
43 lines (43 loc) · 1014 Bytes
/
serving.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
41
42
43
steps:
- name: "gcr.io/cloud-builders/docker"
id: "build container image"
args:
[
"build",
"-f",
"serving.dockerfile",
"-t",
"gcr.io/$PROJECT_ID/serving:$SHORT_SHA",
"--network=cloudbuild",
".",
]
- name: "gcr.io/cloud-builders/docker"
id: "push container image to container registry"
args: ["push", "gcr.io/$PROJECT_ID/serving:$SHORT_SHA"]
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
id: "deploy container image to cloud run"
entrypoint: gcloud
args:
[
"run",
"deploy",
"claim-veracity",
"--image",
"gcr.io/$PROJECT_ID/serving:$SHORT_SHA",
"--region",
"europe-west1",
"--cpu",
"4",
"--memory",
"8Gi",
"--timeout",
"3600",
"--allow-unauthenticated",
"--platform",
"managed",
"--port",
"8501",
]
options:
logging: CLOUD_LOGGING_ONLY
timeout: 3600s