Spaces:
Running
Running
Commit
·
6244d15
1
Parent(s):
be01f94
fix: move to LF ending
Browse files
core-model-prediction/cloudbuild.yaml
CHANGED
@@ -6,7 +6,7 @@ steps:
|
|
6 |
"builds",
|
7 |
"submit",
|
8 |
"--tag",
|
9 |
-
"gcr.io/$PROJECT_ID/interview-ai-detector/model-prediction",
|
10 |
]
|
11 |
|
12 |
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
|
@@ -15,9 +15,9 @@ steps:
|
|
15 |
- "-c"
|
16 |
- |
|
17 |
_MODEL_ID=$(gcloud ai models upload \
|
18 |
-
--region="$_GCP_VERTEX_AI_REGION" \
|
19 |
--container-ports=8080 \
|
20 |
-
--container-image-uri="gcr.io/$PROJECT_ID/interview-ai-detector/model-prediction:latest" \
|
21 |
--container-predict-route="/predict" \
|
22 |
--container-health-route="/health" \
|
23 |
--display-name="interview-ai-detector-model" \
|
@@ -30,7 +30,7 @@ steps:
|
|
30 |
- "-c"
|
31 |
- |
|
32 |
_ENDPOINT_ID=$(gcloud ai endpoints create \
|
33 |
-
--region="$_GCP_VERTEX_AI_REGION" \
|
34 |
--display-name="interview-ai-detector-endpoint" \
|
35 |
--format="value(name)")
|
36 |
echo "_ENDPOINT_ID=${_ENDPOINT_ID}"
|
@@ -40,10 +40,10 @@ steps:
|
|
40 |
args:
|
41 |
- "-c"
|
42 |
- |
|
43 |
-
gcloud ai endpoints deploy-model "$_ENDPOINT_ID" \
|
44 |
-
--region="$_GCP_VERTEX_AI_REGION" \
|
45 |
-
--model="$_MODEL_ID" \
|
46 |
--display-name="interview-ai-detector-deployment" \
|
47 |
--machine-type="n1-standard-4" \
|
48 |
--accelerator="count=1,type=nvidia-tesla-t4" \
|
49 |
-
--service-account="$_GCP_VERTEX_AI_SA_EMAIL"
|
|
|
6 |
"builds",
|
7 |
"submit",
|
8 |
"--tag",
|
9 |
+
"gcr.io/${PROJECT_ID}/interview-ai-detector/model-prediction",
|
10 |
]
|
11 |
|
12 |
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
|
|
|
15 |
- "-c"
|
16 |
- |
|
17 |
_MODEL_ID=$(gcloud ai models upload \
|
18 |
+
--region="${_GCP_VERTEX_AI_REGION}" \
|
19 |
--container-ports=8080 \
|
20 |
+
--container-image-uri="gcr.io/${PROJECT_ID}/interview-ai-detector/model-prediction:latest" \
|
21 |
--container-predict-route="/predict" \
|
22 |
--container-health-route="/health" \
|
23 |
--display-name="interview-ai-detector-model" \
|
|
|
30 |
- "-c"
|
31 |
- |
|
32 |
_ENDPOINT_ID=$(gcloud ai endpoints create \
|
33 |
+
--region="${_GCP_VERTEX_AI_REGION}" \
|
34 |
--display-name="interview-ai-detector-endpoint" \
|
35 |
--format="value(name)")
|
36 |
echo "_ENDPOINT_ID=${_ENDPOINT_ID}"
|
|
|
40 |
args:
|
41 |
- "-c"
|
42 |
- |
|
43 |
+
gcloud ai endpoints deploy-model "${_ENDPOINT_ID}" \
|
44 |
+
--region="${_GCP_VERTEX_AI_REGION}" \
|
45 |
+
--model="${_MODEL_ID}" \
|
46 |
--display-name="interview-ai-detector-deployment" \
|
47 |
--machine-type="n1-standard-4" \
|
48 |
--accelerator="count=1,type=nvidia-tesla-t4" \
|
49 |
+
--service-account="${_GCP_VERTEX_AI_SA_EMAIL}"
|