forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-pipeline.yaml
145 lines (145 loc) · 3.81 KB
/
release-pipeline.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
---
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: pipeline-release
spec:
params:
- name: package
description: package to release
default: github.com/tektoncd/pipeline
- name: imageRegistry
default: gcr.io/tekton-releases
- name: versionTag
description: The X.Y.Z version that the artifacts should be tagged with
resources:
- name: source-repo
type: git
- name: bucket
type: storage
- name: builtBaseImage
type: image
- name: builtEntrypointImage
type: image
- name: builtKubeconfigWriterImage
type: image
- name: builtCredsInitImage
type: image
- name: builtGitInitImage
type: image
- name: builtNopImage
type: image
- name: builtBashImage
type: image
- name: builtGsutilImage
type: image
- name: builtControllerImage
type: image
- name: builtWebhookImage
type: image
- name: builtDigestExporterImage
type: image
- name: builtPullRequestInitImage
type: image
- name: builtGcsFetcherImage
type: image
- name: notification
type: cloudEvent
tasks:
- name: precheck
taskRef:
name: prerelease-checks
params:
- name: package
value: $(params.package)
- name: versionTag
value: $(params.versionTag)
resources:
inputs:
- name: release-bucket
resource: bucket
- name: source-to-release
resource: source-repo
- name: lint
runAfter: [precheck]
taskRef:
name: golangci-lint
params:
- name: package
value: $(params.package)
- name: flags
value: -v
resources:
inputs:
- name: source
resource: source-repo
- name: unit-tests
runAfter: [lint]
taskRef:
name: golang-test
params:
- name: package
value: $(params.package)
resources:
inputs:
- name: source
resource: source-repo
- name: build
runAfter: [lint]
taskRef:
name: golang-build
params:
- name: package
value: $(params.package)
resources:
inputs:
- name: source
resource: source-repo
- name: publish-images
runAfter: [build, unit-tests]
taskRef:
name: publish-tekton-pipelines
params:
- name: pathToProject
value: $(params.package)
- name: versionTag
value: $(params.versionTag)
- name: imageRegistry
value: $(params.imageRegistry)
resources:
inputs:
- name: source
resource: source-repo
- name: bucket
resource: bucket
outputs:
- name: bucket
resource: bucket
- name: builtBaseImage
resource: builtBaseImage
- name: builtEntrypointImage
resource: builtEntrypointImage
- name: builtKubeconfigWriterImage
resource: builtKubeconfigWriterImage
- name: builtCredsInitImage
resource: builtCredsInitImage
- name: builtGitInitImage
resource: builtGitInitImage
- name: builtNopImage
resource: builtNopImage
- name: builtBashImage
resource: builtBashImage
- name: builtGsutilImage
resource: builtGsutilImage
- name: builtControllerImage
resource: builtControllerImage
- name: builtWebhookImage
resource: builtWebhookImage
- name: builtDigestExporterImage
resource: builtDigestExporterImage
- name: builtPullRequestInitImage
resource: builtPullRequestInitImage
- name: builtGcsFetcherImage
resource: builtGcsFetcherImage
- name: notification
resource: notification