-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoolchain.yml
142 lines (131 loc) · 4.59 KB
/
toolchain.yml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
---
name: "Cloud-native Toolchain for Microservices (Cloud Insurance Co.)"
description: "With this cloud-native toolchain, you use a sample to create an online insurance store that consists of three microservices: a Catalog API, an Orders API, and a UI that calls both of the APIs. The toolchain is preconfigured for continuous delivery, source control, blue-green deployment, functional testing, issue tracking, online editing.\n\nTo get started, click **Create**."
version: 2.0
required:
- deploy
- branches
# Github repos
catalog-api-repo:
service_id: githubpublic
parameters:
repo_name: "cloudco-insurance-catalog"
repo_url: "https://github.com/IBM-Bluemix/insurance-catalog"
type: clone
has_issues: true
orders-api-repo:
service_id: githubpublic
parameters:
repo_name: "cloudco-insurance-orders"
repo_url: "https://github.com/IBM-Bluemix/insurance-orders"
type: clone
has_issues: true
ui-repo:
service_id: githubpublic
parameters:
repo_name: "cloudco-insurance-bot"
repo_url: "https://github.com/IBM-Bluemix/insurance-bot"
type: clone
has_issues: true
dashboard-repo:
service_id: githubpublic
parameters:
repo_name: "cloudco-insurance-dashboard"
repo_url: "https://github.com/IBM-Bluemix/insurance-bot-dashboard"
type: clone
has_issues: true
# Pipelines
ui-build:
service_id: pipeline
parameters:
name: "bot ({{branches.parameters.ui-branch-name}})"
configuration:
content: $file(ui.pipeline.yml)
env:
REPO: "ui-repo"
CF_APP_NAME: "{{deploy.parameters.ui-app-name}}"
REPO_BRANCH: "{{branches.parameters.ui-branch-name}}"
SPACE_NAME: "{{deploy.parameters.selected-space}}"
ORG_NAME: "{{deploy.parameters.selected-organization}}"
REGION_ID: "{{deploy.parameters.selected-region}}"
CATALOG_APP_NAME: "{{deploy.parameters.catalog-app-name}}"
ORDERS_APP_NAME: "{{deploy.parameters.orders-app-name}}"
execute: true
services: ["ui-repo"]
hidden: [form, description]
catalog-api-build:
service_id: pipeline
parameters:
name: "catalog ({{branches.parameters.catalog-branch-name}})"
configuration:
content: $file(catalog-api.pipeline.yml)
env:
REPO: "catalog-api-repo"
REPO_BRANCH: "{{branches.parameters.catalog-branch-name}}"
CF_APP_NAME: "{{deploy.parameters.catalog-app-name}}"
SPACE_NAME: "{{deploy.parameters.selected-space}}"
ORG_NAME: "{{deploy.parameters.selected-organization}}"
REGION_ID: "{{deploy.parameters.selected-region}}"
execute: true
services: ["catalog-api-repo"]
hidden: [form, description]
orders-api-build:
service_id: pipeline
parameters:
name: "orders ({{branches.parameters.orders-branch-name}})"
configuration:
content: $file(order-api.pipeline.yml)
env:
REPO: "orders-api-repo"
REPO_BRANCH: "{{branches.parameters.orders-branch-name}}"
CF_APP_NAME: "{{deploy.parameters.orders-app-name}}"
SPACE_NAME: "{{deploy.parameters.selected-space}}"
ORG_NAME: "{{deploy.parameters.selected-organization}}"
REGION_ID: "{{deploy.parameters.selected-region}}"
CATALOG_APP_NAME: "{{deploy.parameters.catalog-app-name}}"
execute: true
services: ["orders-api-repo"]
hidden: [form, description]
dashboard-build:
service_id: pipeline
parameters:
name: "dashboard ({{branches.parameters.dashboard-branch-name}})"
configuration:
content: $file(dashboard.pipeline.yml)
env:
REPO: "dashboard-repo"
REPO_BRANCH: "{{branches.parameters.dashboard-branch-name}}"
CF_APP_NAME: "{{deploy.parameters.dashboard-app-name}}"
SPACE_NAME: "{{deploy.parameters.selected-space}}"
ORG_NAME: "{{deploy.parameters.selected-organization}}"
REGION_ID: "{{deploy.parameters.selected-region}}"
UI_APP_NAME: "{{deploy.parameters.ui-app-name}}"
execute: true
services: ["dashboard-repo"]
hidden: [form, description]
#Web IDE
webide:
service_id: orion
#Deployment
deploy:
schema:
$ref: deploy.json
service-category: pipeline
parameters:
selected-region: "{{region}}"
selected-organization: "{{organization}}"
selected-space: "{{space}}"
orders-app-name: "{{name}}-orders"
catalog-app-name: "{{name}}-catalog"
ui-app-name: "{{name}}-webui"
dashboard-app-name: "{{name}}-dashboard"
#Branch selection
branches:
schema:
$ref: branches.json
service-category: pipeline
parameters:
orders-branch-name: "master"
catalog-branch-name: "master"
ui-branch-name: "master"
dashboard-branch-name: "master"