Spaces:
Running
Running
Commit
·
2773528
1
Parent(s):
0729a48
feat: try to have dual cloud build
Browse files
cloudbuild.yaml → cloudbuild-endpoint.yaml
RENAMED
@@ -1,16 +1,4 @@
|
|
1 |
steps:
|
2 |
-
- name: "gcr.io/cloud-builders/docker"
|
3 |
-
dir: "core-model-prediction"
|
4 |
-
script: |
|
5 |
-
docker build -t us-central1-docker.pkg.dev/${PROJECT_ID}/interview-ai-detector/model-prediction:latest .
|
6 |
-
automapSubstitutions: true
|
7 |
-
|
8 |
-
- name: "gcr.io/cloud-builders/docker"
|
9 |
-
id: "push-image"
|
10 |
-
script: |
|
11 |
-
docker push us-central1-docker.pkg.dev/${PROJECT_ID}/interview-ai-detector/model-prediction:latest
|
12 |
-
automapSubstitutions: true
|
13 |
-
|
14 |
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
|
15 |
entrypoint: "bash"
|
16 |
args:
|
@@ -51,6 +39,3 @@ steps:
|
|
51 |
--machine-type="n1-standard-4" \
|
52 |
--accelerator="count=1,type=nvidia-tesla-t4" \
|
53 |
--service-account="vertex-ai-user-managed-sa@steady-climate-416810.iam.gserviceaccount.com"
|
54 |
-
|
55 |
-
images:
|
56 |
-
- "us-central1-docker.pkg.dev/${PROJECT_ID}/interview-ai-detector/model-prediction:latest"
|
|
|
1 |
steps:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
|
3 |
entrypoint: "bash"
|
4 |
args:
|
|
|
39 |
--machine-type="n1-standard-4" \
|
40 |
--accelerator="count=1,type=nvidia-tesla-t4" \
|
41 |
--service-account="vertex-ai-user-managed-sa@steady-climate-416810.iam.gserviceaccount.com"
|
|
|
|
|
|
cloudbuild-model.yaml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
steps:
|
2 |
+
- name: "gcr.io/cloud-builders/docker"
|
3 |
+
dir: "core-model-prediction"
|
4 |
+
args:
|
5 |
+
[
|
6 |
+
"build",
|
7 |
+
"-t",
|
8 |
+
"us-central1-docker.pkg.dev/${PROJECT_ID}/interview-ai-detector/model-prediction:latest",
|
9 |
+
".",
|
10 |
+
]
|
11 |
+
|
12 |
+
- name: "gcr.io/cloud-builders/docker"
|
13 |
+
args:
|
14 |
+
[
|
15 |
+
"push",
|
16 |
+
"us-central1-docker.pkg.dev/${PROJECT_ID}/interview-ai-detector/model-prediction:latest",
|
17 |
+
]
|
18 |
+
|
19 |
+
images:
|
20 |
+
- "us-central1-docker.pkg.dev/${PROJECT_ID}/interview-ai-detector/model-prediction:latest"
|