-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcloudbuild_eval.yaml
More file actions
34 lines (31 loc) · 1.06 KB
/
cloudbuild_eval.yaml
File metadata and controls
34 lines (31 loc) · 1.06 KB
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
steps:
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/mev-fyi/llama-eval-app:$SHORT_SHA'
- '-f' # Specify the Dockerfile path
- './Dockerfile_eval' # Use the path to your Dockerfile
- .
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/mev-fyi/llama-eval-app:$SHORT_SHA']
# Deploy to Compute Engine
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'gcloud'
args:
- 'compute'
- 'instances'
- 'create-with-container'
- 'my-eval-instance' # Name of the Compute Engine instance
- '--container-image'
- 'gcr.io/mev-fyi/llama-eval-app:$SHORT_SHA'
- '--machine-type'
- 'n1-standard-4' # Specify the machine type as needed
- '--zone'
- 'us-central1-a' # Specify the zone
- '--scopes'
- 'cloud-platform' # This grants the container full access to Google Cloud services.
- '--tags'
- 'http-server,https-server' # Add tags if needed
images:
- 'gcr.io/mev-fyi/llama-eval-app:$SHORT_SHA'