-
Notifications
You must be signed in to change notification settings - Fork 2
/
cloudbuild.yaml
92 lines (79 loc) · 2.49 KB
/
cloudbuild.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
steps:
# API Server
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'-t', 'gcr.io/$PROJECT_ID/$_APP_NAME:$_VERSION',
'.']
dir: 'api-server'
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/$_APP_NAME:$_VERSION' ]
# UI
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'-t', 'gcr.io/$PROJECT_ID/$_APP_NAME/ui:$_VERSION',
'.']
dir: 'ui'
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/$_APP_NAME/ui:$_VERSION' ]
# Query Engine
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'-t', 'gcr.io/$PROJECT_ID/$_APP_NAME/sql:$_VERSION',
'.' ]
dir: 'query-engine'
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/$_APP_NAME/sql:$_VERSION']
# Proxy Server
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'-t', 'gcr.io/$PROJECT_ID/$_APP_NAME/proxy:$_VERSION',
'.']
dir: 'proxy-config'
waitFor: ['-']
# Util image
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'-t', 'gcr.io/$PROJECT_ID/$_APP_NAME/util:$_VERSION',
'.']
dir: 'google-marketplace/util-image'
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/$_APP_NAME/util:$_VERSION' ]
#tester
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'-t', 'gcr.io/$PROJECT_ID/$_APP_NAME/tester:$_VERSION',
'.']
dir: 'google-marketplace/apptest/tester'
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/$_APP_NAME/tester:$_VERSION' ]
# Deployer
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'--build-arg', 'REGISTRY=gcr.io/$PROJECT_ID',
'--build-arg', 'TAG=$_VERSION',
'-t', 'gcr.io/$PROJECT_ID/$_APP_NAME/deployer:$_VERSION',
'-f', 'deployer/Dockerfile',
'.']
dir: 'google-marketplace'
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/$_APP_NAME/deployer:$_VERSION']
timeout: 1200s
substitutions:
_APP_NAME: visulate-for-oracle
_VERSION: 2.0.0
images: [
'gcr.io/$PROJECT_ID/$_APP_NAME:$_VERSION',
'gcr.io/$PROJECT_ID/$_APP_NAME/ui:$_VERSION',
'gcr.io/$PROJECT_ID/$_APP_NAME/sql:$_VERSION',
'gcr.io/$PROJECT_ID/$_APP_NAME/proxy:$_VERSION',
'gcr.io/$PROJECT_ID/$_APP_NAME/util:$_VERSION',
'gcr.io/$PROJECT_ID/$_APP_NAME/tester:$_VERSION',
'gcr.io/$PROJECT_ID/$_APP_NAME/deployer:$_VERSION'
]