-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensor1.sensor.yaml
46 lines (46 loc) · 1.38 KB
/
sensor1.sensor.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
apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
name: sensor1
spec:
template:
serviceAccountName: argo-server
eventBusName: codefresh-eventbus
dependencies:
- name: github-a6eb42c9-3fa1-46fb-8ce2-4130dc28e77a
eventName: github-a6eb42c9-3fa1-46fb-8ce2-4130dc28e77a
eventSourceName: sensor1
filters:
data:
- path: body.X-GitHub-Event
value:
- create
type: string
- path: body.refType
value:
- branch
type: string
triggers:
- template:
name: trigger1
conditions: github-a6eb42c9-3fa1-46fb-8ce2-4130dc28e77a
argoWorkflow:
operation: submit
source:
resource:
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
generateName: sensor1-trigger1-
spec:
arguments:
parameters:
- name: message
value: hello world
workflowTemplateRef:
name: workflow-template-submittable
parameters:
- dest: spec.arguments.parameters.0.value
src:
dependencyName: github-a6eb42c9-3fa1-46fb-8ce2-4130dc28e77a
dataTemplate: branch created!! {{ .Input.body.repository.name }}