-
Notifications
You must be signed in to change notification settings - Fork 7
/
deploy_demo.yaml
43 lines (38 loc) · 1.32 KB
/
deploy_demo.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:
# Test novajs
- name: 'gcr.io/cloud-builders/bazel@sha256:771cbcd1d990c1f268bd1a54013252ade4cf6af4ae2bfe1d37fd7e8710e50b08'
id: unittest
args: ['test', '--config=ci', '--google_default_credentials', '...']
# Copy nova files into the repository
- name: gcr.io/google.com/cloudsdktool/cloud-sdk
id: copy-novafiles
entrypoint: gsutil
args: ['cp', '-r', 'gs://novajs-static-data/Nova Files', 'nova/Nova_Data/']
waitFor: ['unittest']
# Copy plug-ins into the repository
- name: gcr.io/google.com/cloudsdktool/cloud-sdk
id: copy-plugins
entrypoint: gsutil
args: ['cp', '-r', 'gs://novajs-static-data/Plug-ins', 'nova/Nova_Data/']
waitFor: ['unittest']
# Publish the image
- name: 'gcr.io/cloud-builders/bazel@sha256:771cbcd1d990c1f268bd1a54013252ade4cf6af4ae2bfe1d37fd7e8710e50b08'
id: push_container
args: ['run', '--config=ci', '--google_default_credentials', '//nova:push_nova_image']
waitFor: ['copy-novafiles', 'copy-plugins']
# Deploy to cloud run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args:
- 'run'
- 'deploy'
- 'nova'
- '--image'
- 'gcr.io/$PROJECT_ID/nova:dev'
- '--region'
- 'us-central1'
- '--platform'
- 'managed'
timeout: 900s
options:
machineType: 'E2_HIGHCPU_8'