forked from SAP-samples/btp-bas-risk-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmta.yaml
209 lines (209 loc) · 6.67 KB
/
mta.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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
_schema-version: '3.1'
ID: riskmanagement
version: 1.0.0
description: A simple CAP project.
parameters:
enable-parallel-deployments: true
build-parameters:
before-all:
- builder: custom
commands:
- rm -rf build/ui-deployer
- mkdir -p build/ui-deployer
- builder: custom
commands:
- npm install --production
- >-
bash -c "cds -v 2>/dev/null >/dev/null || npm install --no-save
@sap/cds-dk"
- npx cds build --production
modules:
- name: riskmanagement-workflow
type: com.sap.application.content
path: workflow
requires:
- name: riskmanagement-service-workflow
parameters:
content-target: true
- name: riskmanagement-service-uaa
- name: riskmanagement-service-html5-apps-repo-host
- name: riskmanagement-Riskmanagement_Mitigations
type: html5
path: app/Riskmanagement_Mitigations
build-parameters:
builder: custom
commands:
- rm -rf dist-zip dist
- npm install
- >-
npx ui5 build --dest dist --include-task=generateManifestBundle
--include-task=generateCachebusterInfo
- mkdir dist-zip
- >-
bash -c "cd dist && npx bestzip
../dist-zip/Riskmanagement_Mitigations.zip *"
_artifactName: Riskmanagement_Mitigations.zip
supported-platforms: []
build-result: dist-zip
- name: riskmanagement-Riskmanagement_Risks
type: html5
path: app/Riskmanagement_Risks
build-parameters:
builder: custom
commands:
- rm -rf dist-zip dist
- npm install
- >-
npx ui5 build --dest dist --include-task=generateManifestBundle
--include-task=generateCachebusterInfo
- mkdir dist-zip
- >-
bash -c "cd dist && npx bestzip ../dist-zip/Riskmanagement_Risks.zip
*"
_artifactName: Riskmanagement_Risks.zip
supported-platforms: []
build-result: dist-zip
- name: riskmanagement-launchpad
type: html5
path: build/launchpad
build-parameters:
builder: custom
commands:
- rm -rf dist-zip dist
- npm install
- >-
npx ui5 build --dest dist --include-task=generateManifestBundle
--include-task=generateCachebusterInfo
- mkdir dist-zip
- bash -c "cd dist && npx bestzip ../dist-zip/launchpad.zip *"
_artifactName: launchpad.zip
supported-platforms: []
build-result: dist-zip
- name: riskmanagement-db-deployer
type: hdb
path: gen/db
parameters:
buildpack: nodejs_buildpack
build-parameters:
builder: npm
ignore:
- node_modules
requires:
- name: riskmanagement-service-uaa
- name: riskmanagement-service-db
- name: riskmanagement-service-workflow
- name: riskmanagement-srv
type: nodejs
path: gen/srv
provides:
- name: srv-api
properties:
srv-url: '${default-url}'
build-parameters:
builder: npm
ignore:
- node_modules
- package-lock.json
requires:
- name: riskmanagement-service-uaa
- name: riskmanagement-service-db
- name: riskmanagement-service-workflow
- name: riskmanagement-service-destination
- name: riskmanagement-aux-destinations
type: com.sap.application.content
parameters:
content:
subaccount:
existing_destinations_policy: update
destinations:
- Authentication: OAuth2UserTokenExchange
Name: riskmanagement-service-uaa
ServiceInstanceName: riskmanagement-uaa
ServiceKeyName: riskmanagement-uaa-key
sap.cloud.service: lcap.riskmanagement
- Authentication: OAuth2UserTokenExchange
Name: riskmanagement-app-srv
TokenServiceInstanceName: riskmanagement-uaa
TokenServiceKeyName: riskmanagement-uaa-key
URL: '~{srv-api/srv-url}'
sap.cloud.service: lcap.riskmanagement
- Name: riskmanagement-service-html5-apps-repo-host
ServiceInstanceName: riskmanagement-html5-apps-repo-host
ServiceKeyName: riskmanagement-html5-apps-repo-host-key
sap.cloud.service: lcap.riskmanagement
build-parameters:
no-source: true
requires:
- name: riskmanagement-service-uaa
parameters:
service-key:
name: riskmanagement-uaa-key
- name: srv-api
- name: riskmanagement-service-html5-apps-repo-host
parameters:
service-key:
name: riskmanagement-html5-apps-repo-host-key
- name: riskmanagement-service-destination
parameters:
content-target: true
- name: riskmanagement-aux-ui-deployer
type: com.sap.application.content
path: build/ui-deployer
build-parameters:
build-result: resources
requires:
- name: riskmanagement-Riskmanagement_Mitigations
artifacts:
- Riskmanagement_Mitigations.zip
target-path: resources
- name: riskmanagement-Riskmanagement_Risks
artifacts:
- Riskmanagement_Risks.zip
target-path: resources
- name: riskmanagement-launchpad
artifacts:
- launchpad.zip
target-path: resources
requires:
- name: riskmanagement-service-html5-apps-repo-host
parameters:
content-target: true
resources:
- type: org.cloudfoundry.managed-service
name: riskmanagement-service-workflow
parameters:
service: workflow
service-plan: standard
service-name: riskmanagement-workflow
- type: org.cloudfoundry.managed-service
name: riskmanagement-service-uaa
parameters:
service: xsuaa
service-plan: application
service-name: riskmanagement-uaa
path: xs-security.json
config:
xsappname: 'Riskmanagement-${space}'
role-collections:
- description: RiskmanagementManager
name: 'RiskmanagementManager-${space}'
role-template-references:
- $XSAPPNAME.RiskmanagementManager
- type: org.cloudfoundry.managed-service
name: riskmanagement-service-html5-apps-repo-host
parameters:
service: html5-apps-repo
service-plan: app-host
service-name: riskmanagement-html5-apps-repo-host
- type: org.cloudfoundry.managed-service
name: riskmanagement-service-db
parameters:
service: hana
service-plan: hdi-shared
service-name: riskmanagement-db
- type: org.cloudfoundry.managed-service
name: riskmanagement-service-destination
parameters:
service: destination
service-plan: lite
service-name: riskmanagement-destination