-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtriggerTemplate.yml
More file actions
41 lines (40 loc) · 1.07 KB
/
triggerTemplate.yml
File metadata and controls
41 lines (40 loc) · 1.07 KB
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
apiVersion: triggers.tekton.dev/v1beta1
kind: TriggerTemplate
metadata:
name: eap-app-template
spec:
params:
- name: git-repo-url
description: The git repository url
- name: git-revision
description: The git revision
- name: git-repo-name
description: The name of the deployment to be created / patched
resourcetemplates:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: build-deploy-$(tt.params.git-repo-name)-
spec:
params:
- name: repo-url
value: $(tt.params.git-repo-url)
- name: revision
value: $(tt.params.git-revision)
- name: context-path
value: kitchensink
pipelineRef:
name: maven-pipeline
serviceAccountName: pipeline
timeout: 1h0m0s
workspaces:
- name: shared-workspace
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1000Mi
- emptyDir: {}
name: maven-settings