-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccelerator.yaml
95 lines (89 loc) · 2.97 KB
/
accelerator.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
accelerator:
displayName: OpenLegacy Proof-of-Concept
description: OpenLegacy Proof-of-Concept Accelerator
iconUrl: https://icons.iconarchive.com/icons/elegantthemes/beautiful-flat-one-color/128/dev-icon.png
tags:
- account
- cics
- java
- spring
- demo
options:
- name: gitUrl
label: Git Repository URL
display: true
description: Git Repository URL of the application's source code
inputType: text
dataType: string
defaultValue: "https://github.com/PeterEltgroth/account-cics-microservice.git"
- name: gitBranch
label: Git Repository Branch
display: true
description: Git Repository Branch of the application's source code
inputType: text
dataType: string
defaultValue: "main"
- name: publisherRepository
inputType: text
label: Repository used to publish the container image
defaultValue: tanzuapplicationplatform.azurecr.io
description: The repository to use to publish the image built. Specify the server/repository that match those specified for registry.server and registry.repository.
required: true
- name: licenseKey
inputType: text
label: License Key
description: OpenLegacy License Key
required: true
- name: apiKey
inputType: text
label: API Key
description: OpenLegacy API Key
required: true
engine:
merge:
- include: [ "**" ]
exclude: [ "README.md", "config/workload.yaml", "src/main/resources/application.yml", "Tiltfile", "catalog/catalog-info.yaml", "accelerator-manifest.yaml" ]
- include: [ "README.md" ]
chain:
- type: ReplaceText
substitutions:
- text: REPO_URL
with: "#gitUrl"
- text: REPO_BRANCH
with: "#gitBranch"
- text: WORKLOAD_NAME
with: "#projectName"
- include: [ "config/workload.yaml" ]
chain:
- type: ReplaceText
substitutions:
- text: https://github.com/PeterEltgroth/account-cics-microservice.git
with: "#gitUrl"
- text: docker
with: "#gitBranch"
- type: ReplaceText
regex:
pattern: ": account-cics-microservice"
with: "': ' + #projectName"
- include: [ "src/main/resources/application.yml" ]
chain:
- type: ReplaceText
substitutions:
- text: license-key-val
with: "#licenseKey"
- text: api-key-val
with: "#apiKey"
- include: [ "Tiltfile" ]
chain:
- type: ReplaceText
substitutions:
- text: tanzuapplicationplatform.azurecr.io
with: "#publisherRepository"
- text: account-cics-microservice
with: "#projectName"
- include: [ "catalog/catalog-info.yaml" ]
chain:
- type: ReplaceText
substitutions:
- text: account-cics-microservice
with: "#projectName"