forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkritis.yaml
63 lines (63 loc) · 2.03 KB
/
kritis.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
apiVersion: pipeline.knative.dev/v1alpha1
kind: Pipeline
metadata:
name: kritis-pipeline
namespace: default
spec:
tasks:
- name: unit-test-kritis # 1. Run unit Tests
taskRef:
name: make
inputSourceBindings:
- name: kritis-app-github
key: workspace # bind to the name in the task
resourceRef:
name: kritis-resources-git
params:
- name: makeTarget
value: test
- name: push-kritis # 2. Build And Push Tests
taskRef:
name: build-push
inputSourceBindings:
- name: kritis-app-github
key: workspace # bind to the name in the task
resourceRef:
name: kritis-resources-git
passedConstraints:
- unit-test-make
outputSourceBindings:
- name: kritisImage
key: builtImage # bind to the name in the task
resourceRef:
name: kritis-resources-image
params:
- name: pathToDockerfile
value: deploy/Dockerfile
- name: deploy-test-env # 3. Finally Deploy to Test environment
taskRef:
name: deploy-with-helm
inputSourceBindings:
- name: guestbookImage
key: workspace
resourceRef:
name: kritis-resources-image
passedConstraints: [build-push]
params:
- name: pathToHelmCharts
value: kritis-charts
clusterBindings:
- inputName: targetCluster
key: testCluster
- name: integration-test # 4. Run Integration Tests in test cluster
taskRef:
name: integration-test-in-docker
inputSourceBindings:
- name: kritis-test-github
key: workspace
resourceRef:
name: kritis-resources-test-git
passedConstraints: [deploy-with-helm]
params:
- name: testArgs
value: "-e REMOTE_INTEGRATION=true"