-
Notifications
You must be signed in to change notification settings - Fork 27
/
.prow.yaml
213 lines (213 loc) · 5.93 KB
/
.prow.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# yaml-language-server: $schema=.inner-prowjob.schema.json
presubmits:
- name: pull-tichi-validate-prow-yaml
decorate: true
run_if_changed: "configs/prow-dev/"
branches:
- ^master$
spec:
containers:
- image: gcr.io/k8s-prow/checkconfig:v20221205-a1b0b85d88
command:
- /ko-app/checkconfig
args:
- --plugin-config=configs/prow-dev/config/plugins.yaml
- --config-path=configs/prow-dev/config/config.yaml
- --job-config-path=configs/prow-dev/jobs
- --warnings=validate-urls
- --warnings=unknown-fields
- --warnings=duplicate-job-refs
- name: pull-tichi-validate-external-plugin-yaml
decorate: true
run_if_changed: "configs/prow-dev/config/external_plugins_config.yaml"
branches:
- ^master$
spec:
containers:
- image: ticommunityinfra/tichi-check-external-plugin-config:v2.4.0
command:
- check-external-plugin-config
args:
- --external-plugin-config-path=configs/prow-dev/config/external_plugins_config.yaml
- name: pull-tichi-unit-test
decorate: true
run_if_changed: ".+.(go|gomod)$"
branches:
- ^master$
spec:
containers:
- image: golang:1.18
command:
- /bin/bash
- -c
- "GIT_COMMIT=${PULL_PULL_SHA} make check cover"
env:
- name: CODECOV_TOKEN
valueFrom:
secretKeyRef:
name: codecov-tokens
key: ti-community-infra-tichi-codecov-token
- name: pull-tichi-label-dumpling-checks
decorate: true
run_if_changed: "tools/label-dumpling/"
branches:
- ^master$
spec:
containers:
- image: rust:1.52
command:
- /bin/bash
- -c
- "make label-dumpling-checks"
- name: pull-tichi-web-node14-lint
decorate: true
run_if_changed: web/
branches:
- ^master$
spec:
containers:
- image: node:14
command:
- /bin/bash
- -c
- >
cd ./web &&
npm ci &&
npm run build &&
npm run lint
- name: pull-tichi-validate-labels-yaml
decorate: true
run_if_changed: "configs/prow-dev/config/labels.*"
branches:
- ^master$
spec:
containers:
- image: golang:1.18
command:
- scripts/verify-labels.sh
- name: pull-tichi-rerere
decorate: true
always_run: true
trigger: "(?mi)^/(merge|rerere)\\s*$"
rerun_command: "/rerere"
max_concurrency: 1
branches:
- ^master$
spec:
containers:
- image: ticommunityinfra/rerere-component:v1.9.5
command:
- rerere
args:
- --github-token-path=/etc/github/token
- --dry-run=false
- --github-endpoint=https://api.github.com
- --require-contexts=lint
- --labels=status/can-merge
- --retesting-branch=rerere
- --git-user-from-github=true
- --git-token-path=/etc/github/token
volumeMounts:
- name: github-token
mountPath: /etc/github
readOnly: true
volumes:
- name: github-token
secret:
secretName: github-token
postsubmits:
- name: post-tichi-deploy-prow
run_if_changed: "configs/prow-dev/cluster/"
decorate: true
branches:
- ^master$
max_concurrency: 1
spec:
containers:
- image: google/cloud-sdk:319.0.0
command:
- scripts/deploy.sh
args:
- --confirm
- --config=trusted
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /creds/service-account.json
volumeMounts:
- name: creds
mountPath: /creds
volumes:
- name: creds
secret:
secretName: deployer-credentials
annotations:
description: deploys the configured version of prow by running scripts/deploy.sh
- name: post-tichi-label-sync
decorate: true
run_if_changed: "configs/prow-dev/config/labels.yaml"
branches:
- ^master$
spec:
containers:
- image: gcr.io/k8s-prow/label_sync:v20221205-a1b0b85d88
command:
- /ko-app/label_sync
args:
- --config=configs/prow-dev/config/labels.yaml
- --confirm=true
- --only=ti-community-infra/test-dev
- --token=/etc/github/token
volumeMounts:
- name: github-token
mountPath: /etc/github
readOnly: true
volumes:
- name: github-token
secret:
secretName: github-token
- name: post-tichi-unit-test
decorate: true
run_if_changed: ".+.(go|gomod)$"
branches:
- ^(master|rerere)$
spec:
containers:
- image: golang:1.18
command:
- /bin/bash
- -c
- "GIT_COMMIT=${PULL_PULL_SHA} make check cover"
env:
- name: CODECOV_TOKEN
valueFrom:
secretKeyRef:
name: codecov-tokens
key: ti-community-infra-tichi-codecov-token
- name: post-tichi-label-dumpling-checks
decorate: true
run_if_changed: "tools/label-dumpling/"
branches:
- ^(master|rerere)$
spec:
containers:
- image: rust:1.52
command:
- /bin/bash
- -c
- "make label-dumpling-checks"
- name: post-tichi-web-node14-lint
decorate: true
run_if_changed: web/
branches:
- ^(master|rerere)$
spec:
containers:
- image: node:14
command:
- /bin/bash
- -c
- >
cd ./web &&
npm ci &&
npm run build &&
npm run lint