forked from rsundara/cp4i-datapower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdp-demo-trigger-template.yaml
42 lines (41 loc) · 1.17 KB
/
dp-demo-trigger-template.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
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerTemplate
metadata:
name: dp-demo-trigger-template
spec:
params:
- name: URL
description: The repository url to build and deploy.
- name: REVISION
description: The revision to build and deploy.
- name: DATAPOWER_SERVICE_NAME
description: DataPower service name
- name: ENVIRONMENT
description: suffix to the datapowerService name
- name: PRODUCTION
description: Specifies if the deployment is production-like with High Availability enabled. Default [false]
resourcetemplates:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: install-datapower-run-
spec:
serviceAccountName: dp-demo
pipelineRef:
name: install-datapower
resources:
- name: source
resourceSpec:
type: git
params:
- name: revision
value: $(params.REVISION)
- name: url
value: $(params.URL)
params:
- name: dpconfig
value: $(params.DATAPOWER_SERVICE_NAME)
- name: env
value: $(params.ENVIRONMENT)
- name: production
value: $(params.PRODUCTION)