This repository was archived by the owner on May 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpipeline.yaml
More file actions
114 lines (114 loc) · 2.58 KB
/
pipeline.yaml
File metadata and controls
114 lines (114 loc) · 2.58 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: e2e-pipeline
spec:
workspaces:
- name: shared-workspace
params:
- name: deployment-name
type: string
description: name of the deployment to be patched
- name: git-url
type: string
description: url of the git repo for the code of deployment
- name: git-revision
type: string
description: revision to be used from repo of the code for deployment
default: "master"
- name: IMAGE
type: string
description: image to be build from the code
tasks:
- name: fetch-repository
params:
- name: url
value: $(params.git-url)
- name: deleteExisting
value: 'true'
- name: revision
value: $(params.git-revision)
taskRef:
kind: ClusterTask
name: git-clone
workspaces:
- name: output
workspace: shared-workspace
- name: build-image
params:
- name: IMAGE
value: $(params.IMAGE)
runAfter:
- fetch-repository
taskRef:
kind: ClusterTask
name: buildah
workspaces:
- name: source
workspace: shared-workspace
- name: dev-apply-manifests
params:
- name: project-name
value: dev-env
runAfter:
- build-image
taskRef:
kind: Task
name: apply-manifests
workspaces:
- name: source
workspace: shared-workspace
- name: update-deployment-dev
params:
- name: deployment
value: $(params.deployment-name)
- name: IMAGE
value: $(params.IMAGE)
- name: project-name
value: dev-env
runAfter:
- dev-apply-manifests
taskRef:
kind: Task
name: update-deployment
- name: test-task
params:
- name: APP_NAME
value: $(params.deployment-name)
- name: APP_VERSION
value: '1.0'
- name: DEPLOY_PROJECT
value: dev-env
runAfter:
- update-deployment-dev
taskRef:
kind: Task
name: test-app
workspaces:
- name: source
workspace: shared-workspace
- name: promote-stage
params:
- name: project-name
value: stage-env
runAfter:
- test-task
taskRef:
kind: Task
name: apply-manifests
workspaces:
- name: source
workspace: shared-workspace
- name: update-deployment-stage
params:
- name: deployment
value: $(params.deployment-name)
- name: IMAGE
value: $(params.IMAGE)
- name: project-name
value: stage-env
runAfter:
- promote-stage
taskRef:
kind: Task
name: update-deployment