-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathkritis.yaml
55 lines (55 loc) · 1.88 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
apiVersion: pipeline.knative.dev/v1beta1
kind: Pipeline
metadata:
name: kritis-pipeline
namespace: default
spec:
tasks:
- name: unit-test-kritis # 1. Run unit Tests
taskRef:
name: make
sourceBindings:
- inputName: workspace
sourceKey: kritis
params:
- name: makeTarget
value: test
- name: push-kritis # 2. Build And Push Tests
taskRef:
name: build-push
sourceBindings:
- inputName: workspace
sourceKey: kritis
artifactStoreBindings:
- storeName: registry
storeKey: stagingRegistry
builtImage: kritis # TODO Add Commit SHA
params:
- name: pathToDockerfile
value: deploy/Dockerfile
prevTasks: ['unit-test-kritis']
- name: deploy-test-env # 3. Finally Deploy to Test environment
taskRef:
name: deploy-with-helm
sourceBindings:
- inputName: workspace
sourceKey: kritis
paramBindings: # Implicit dependency on buildPush task.
- inputName: testImage
taskName: buildPush
taskOutputName: builtImage
params:
- name: pathToHelmCharts
value: kritis-charts
clusterBindings:
- clusterName: test
nextTasks: ['integration-test']
- name: integration-test # 4. Run Integration Tests in test cluster
taskRef:
name: integration-test-in-docker
sourceBindings:
- inputName: workspace
sourceKey: kritis
params:
- name: testArgs
value: "-e REMOTE_INTEGRATION=true"