-
Notifications
You must be signed in to change notification settings - Fork 3
/
accelerator.yaml
101 lines (100 loc) · 3.35 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
96
97
98
99
100
accelerator:
displayName: TAP Python Recipes
description: TAP Python Recipes
iconUrl: https://s3.dualstack.us-east-2.amazonaws.com/pythondotorg-assets/media/community/logos/python-logo-only.png
tags:
- simple
- python-recipes
options:
- name: branchName
inputType: text
label: Branch-name
defaultValue: main
required: true
dependsOn:
name: interfaceType
value: python-simple-func-w-gitops
- name: ownerName
inputType: text
label: Owner-name
defaultValue: mhoshi-vm
required: true
dependsOn:
name: interfaceType
value: python-simple-func-w-gitops
- name: interfaceType
inputType: select
label: Choose Python Framework
choices:
- value: python-simple
text: シンプルな Flask アプリケーション
- value: python-simple-test
text: テストとシンプルな Flask アプリケーション
- value: python-simple-swagger
text: OpenAPI 対応の Flask アプリケーション
- value: python-simple-rdb-sb
text: RDB への接続可能な Flask アプリケーション
- value: python-simple-liveupdate
text: LiveUpdate 機能付き Flask アプリケーション
- value: python-simple-gitops
text: GitOps 対応のコード Flask アプリケーション
defaultValue: python-simple
required: true
- name: includeDevContainer
inputType: checkbox
dataType: boolean
label: Include .devcontainer.json (amd64 support only)
description: Experimental support for "Visual Studio Code Dev Containers".
defaultValue: false
engine:
merge:
- include: [ "python-simple/*" ]
condition: "#interfaceType == 'python-simple'"
chain:
- type: RewritePath
regex: python-.*?/(.*)
rewriteTo: "#g1"
- include: [ "python-simple-test/*" ]
condition: "#interfaceType == 'python-simple-test'"
chain:
- type: RewritePath
regex: python-.*?/(.*)
rewriteTo: "#g1"
- include: [ "python-simple-swagger/*" ]
condition: "#interfaceType == 'python-simple-swagger'"
chain:
- type: RewritePath
regex: python-.*?/(.*)
rewriteTo: "#g1"
- include: [ "python-simpld-rdb-sb/*" ]
condition: "#interfaceType == 'python-simpld-rdb-sb'"
chain:
- type: RewritePath
regex: python-.*?/(.*)
rewriteTo: "#g1"
- include: [ "python-simple-liveupdate/*" ]
condition: "#interfaceType == 'python-simple-liveupdate'"
chain:
- type: RewritePath
regex: python-.*?/(.*)
rewriteTo: "#g1"
- include: [ "python-simple-liveupdate/*" ]
condition: "#interfaceType == 'python-simple-liveupdate'"
chain:
- type: RewritePath
regex: python-.*?/(.*)
rewriteTo: "#g1"
- include: [ "python-simple-gitops/*" ]
condition: "#interfaceType == 'python-simple-gitops'"
chain:
- type: ReplaceText
substitutions:
- text: " - name: gitops_branch\n value: main"
with: "' - name: gitops_branch\n value: ' + #branchName"
- text: " - name: gitops_repository_owner\n value: mhoshi-vm"
with: "' - name: gitops_repository_owner\n value: ' + #ownerName"
- type: RewritePath
regex: python-.*?/(.*)
rewriteTo: "#g1"
- include: [ ".devcontainer.json" ]
condition: "#includeDevContainer"