Spaces:
Running
Running
Commit
·
e9072c9
1
Parent(s):
f580130
fix: remove all substitutions
Browse files
core-model-prediction/cloudbuild.yaml
CHANGED
@@ -6,8 +6,8 @@ steps:
|
|
6 |
- "-c"
|
7 |
- |
|
8 |
gcloud builds submit \
|
9 |
-
--region="
|
10 |
-
--tag
|
11 |
|
12 |
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
|
13 |
entrypoint: "bash"
|
@@ -15,7 +15,7 @@ steps:
|
|
15 |
- "-c"
|
16 |
- |
|
17 |
_MODEL_ID=$(gcloud ai models upload \
|
18 |
-
--region="
|
19 |
--container-ports=8080 \
|
20 |
--container-image-uri="gcr.io/${PROJECT_ID}/interview-ai-detector/model-prediction:latest" \
|
21 |
--container-predict-route="/predict" \
|
@@ -30,7 +30,7 @@ steps:
|
|
30 |
- "-c"
|
31 |
- |
|
32 |
_ENDPOINT_ID=$(gcloud ai endpoints create \
|
33 |
-
--region="
|
34 |
--display-name="interview-ai-detector-endpoint" \
|
35 |
--format="value(name)")
|
36 |
echo "_ENDPOINT_ID=${_ENDPOINT_ID}"
|
@@ -41,9 +41,9 @@ steps:
|
|
41 |
- "-c"
|
42 |
- |
|
43 |
gcloud ai endpoints deploy-model "${_ENDPOINT_ID}" \
|
44 |
-
--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="
|
|
|
6 |
- "-c"
|
7 |
- |
|
8 |
gcloud builds submit \
|
9 |
+
--region="us-central1"
|
10 |
+
--tag=us-central1-docker.pkg.dev/${PROJECT_ID}/interview-ai-detector/model-prediction
|
11 |
|
12 |
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
|
13 |
entrypoint: "bash"
|
|
|
15 |
- "-c"
|
16 |
- |
|
17 |
_MODEL_ID=$(gcloud ai models upload \
|
18 |
+
--region="us-central1" \
|
19 |
--container-ports=8080 \
|
20 |
--container-image-uri="gcr.io/${PROJECT_ID}/interview-ai-detector/model-prediction:latest" \
|
21 |
--container-predict-route="/predict" \
|
|
|
30 |
- "-c"
|
31 |
- |
|
32 |
_ENDPOINT_ID=$(gcloud ai endpoints create \
|
33 |
+
--region="us-central1" \
|
34 |
--display-name="interview-ai-detector-endpoint" \
|
35 |
--format="value(name)")
|
36 |
echo "_ENDPOINT_ID=${_ENDPOINT_ID}"
|
|
|
41 |
- "-c"
|
42 |
- |
|
43 |
gcloud ai endpoints deploy-model "${_ENDPOINT_ID}" \
|
44 |
+
--region="us-central1" \
|
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="vertex-ai-user-managed-sa@steady-climate-416810.iam.gserviceaccount.com"
|