Skip to content

Commit 240f51a

Browse files
Added/Modified codefresh.sensor.yaml, codefresh.event-source.yaml
1 parent 712c89e commit 240f51a

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

codefresh.event-source.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: EventSource
3+
metadata:
4+
name: codefresh
5+
spec:
6+
eventBusName: codefresh-eventbus
7+
service:
8+
ports:
9+
- port: 80
10+
template:
11+
serviceAccountName: argo-server
12+
github:
13+
github-01634da6-9eac-4a95-931b-28f4ecada939:
14+
events:
15+
- push
16+
repositories:
17+
- owner: danielm-codefresh
18+
names:
19+
- test-gs
20+
webhook:
21+
port: '80'
22+
method: POST
23+
endpoint: >-
24+
/webhooks/some-namespace/codefresh/github-01634da6-9eac-4a95-931b-28f4ecada939
25+
url: https://daniel-dev-nginx.pipeline-team.cf-cd.com
26+
active: true
27+
insecure: false
28+
contentType: json
29+
deleteHookOnFinish: true
30+
apiToken:
31+
name: runtime-repo-creds-secret
32+
key: password

codefresh.sensor.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Sensor
3+
metadata:
4+
name: codefresh
5+
spec:
6+
template:
7+
serviceAccountName: argo-server
8+
eventBusName: codefresh-eventbus
9+
dependencies:
10+
- name: github-01634da6-9eac-4a95-931b-28f4ecada939
11+
eventName: github-01634da6-9eac-4a95-931b-28f4ecada939
12+
eventSourceName: codefresh
13+
filters:
14+
data:
15+
- path: body.X-GitHub-Event
16+
value:
17+
- push
18+
type: string
19+
- path: body.ref
20+
template: '{{ (split "/" .Input)._1 }}'
21+
value:
22+
- heads
23+
type: string
24+
triggers:
25+
- template:
26+
name: ci
27+
conditions: github-01634da6-9eac-4a95-931b-28f4ecada939
28+
argoWorkflow:
29+
operation: submit
30+
source:
31+
resource:
32+
apiVersion: argoproj.io/v1alpha1
33+
kind: WorkflowTemplate
34+
metadata:
35+
generateName: codefresh-ci-
36+
spec:
37+
arguments:
38+
parameters:
39+
- name: TEXT
40+
value: Hello World!!!
41+
workflowTemplateRef:
42+
name: argo-hub.argo-workflows-utils.0.0.1
43+
parameters: []

0 commit comments

Comments
 (0)