Skip to content

Commit b768829

Browse files
authored
Adding pre-submit images build (#486)
Dependency for pre-submit testing PRs: #373
1 parent 96b08ff commit b768829

File tree

1 file changed

+360
-0
lines changed

1 file changed

+360
-0
lines changed

.prow.yaml

+360
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,363 @@ presubmits:
7777
- image: nephio/gotests:1671656214984921088
7878
command:
7979
- "/usr/local/bin/lichen.sh"
80+
81+
- name: build-push-pre-image-ueransim-deploy-fn
82+
cluster: default
83+
always_run: true
84+
branches:
85+
- "main"
86+
annotations:
87+
description: Build and Push Presubmit Image to Hub
88+
decorate: true
89+
decoration_config:
90+
censor_secrets: true
91+
max_concurrency: 0
92+
spec:
93+
containers:
94+
- name: kaniko
95+
image: gcr.io/kaniko-project/executor:debug
96+
command:
97+
- "/bin/sh"
98+
- "-c"
99+
- |
100+
executor --context=${PWD} \
101+
--dockerfile=krm-functions/ueransim-deploy-fn/Dockerfile --destination=nephio/pre-ueransim-deploy-fn:${PULL_BASE_REF}
102+
volumeMounts:
103+
- name: kaniko-secret
104+
mountPath: /kaniko/.docker/
105+
resources:
106+
requests:
107+
cpu: 1
108+
memory: 1Gi
109+
volumes:
110+
- name: kaniko-secret
111+
secret:
112+
secretName: regcred
113+
items:
114+
- key: .dockerconfigjson
115+
path: config.json
116+
117+
- name: build-push-pre-image-configinject-fn
118+
cluster: default
119+
always_run: true
120+
branches:
121+
- "main"
122+
annotations:
123+
description: Build and Push Presubmit Image to Hub
124+
decorate: true
125+
decoration_config:
126+
censor_secrets: true
127+
max_concurrency: 0
128+
spec:
129+
containers:
130+
- name: kaniko
131+
image: gcr.io/kaniko-project/executor:debug
132+
command:
133+
- "/bin/sh"
134+
- "-c"
135+
- |
136+
executor --context=${PWD} \
137+
--dockerfile=krm-functions/configinject-fn/Dockerfile --destination=nephio/pre-configinject-fn:${BUILD_ID}
138+
volumeMounts:
139+
- name: kaniko-secret
140+
mountPath: /kaniko/.docker/
141+
resources:
142+
requests:
143+
cpu: 1
144+
memory: 1Gi
145+
volumes:
146+
- name: kaniko-secret
147+
secret:
148+
secretName: regcred
149+
items:
150+
- key: .dockerconfigjson
151+
path: config.json
152+
153+
- name: build-push-pre-image-dnn-fn-commit-conf
154+
cluster: default
155+
always_run: true
156+
branches:
157+
- "main"
158+
annotations:
159+
description: Build and Push Presubmit Image to Hub
160+
decorate: true
161+
decoration_config:
162+
censor_secrets: true
163+
max_concurrency: 0
164+
spec:
165+
containers:
166+
- name: kaniko
167+
image: gcr.io/kaniko-project/executor:debug
168+
command:
169+
- "/bin/sh"
170+
- "-c"
171+
- |
172+
executor --context=${PWD} \
173+
--dockerfile=krm-functions/dnn-fn/Dockerfile --destination=nephio/pre-dnn-fn:${BUILD_ID}
174+
volumeMounts:
175+
- name: kaniko-secret
176+
mountPath: /kaniko/.docker/
177+
resources:
178+
requests:
179+
cpu: 1
180+
memory: 1Gi
181+
volumes:
182+
- name: kaniko-secret
183+
secret:
184+
secretName: regcred
185+
items:
186+
- key: .dockerconfigjson
187+
path: config.json
188+
189+
- name: build-push-pre-image-gen-cmap-fn
190+
cluster: default
191+
always_run: true
192+
branches:
193+
- "main"
194+
annotations:
195+
description: Build and Push Presubmit Image to Hub
196+
decorate: true
197+
decoration_config:
198+
censor_secrets: true
199+
max_concurrency: 0
200+
spec:
201+
containers:
202+
- name: kaniko
203+
image: gcr.io/kaniko-project/executor:debug
204+
command:
205+
- "/bin/sh"
206+
- "-c"
207+
- |
208+
executor --context=${PWD} \
209+
--dockerfile=krm-functions/gen-configmap-fn/Dockerfile --destination=nephio/pre-gen-configmap-fn:${BUILD_ID}
210+
volumeMounts:
211+
- name: kaniko-secret
212+
mountPath: /kaniko/.docker/
213+
resources:
214+
requests:
215+
cpu: 1
216+
memory: 1Gi
217+
volumes:
218+
- name: kaniko-secret
219+
secret:
220+
secretName: regcred
221+
items:
222+
- key: .dockerconfigjson
223+
path: config.json
224+
225+
- name: build-push-pre-image-interface-fn
226+
cluster: default
227+
always_run: true
228+
branches:
229+
- "main"
230+
annotations:
231+
description: Build and Push Presubmit Image to Hub
232+
decorate: true
233+
decoration_config:
234+
censor_secrets: true
235+
max_concurrency: 0
236+
spec:
237+
containers:
238+
- name: kaniko
239+
image: gcr.io/kaniko-project/executor:debug
240+
command:
241+
- "/bin/sh"
242+
- "-c"
243+
- |
244+
executor --context=${PWD} \
245+
--dockerfile=krm-functions/interface-fn/Dockerfile --destination=nephio/pre-interface-fn:${BUILD_ID}
246+
volumeMounts:
247+
- name: kaniko-secret
248+
mountPath: /kaniko/.docker/
249+
resources:
250+
requests:
251+
cpu: 1
252+
memory: 1Gi
253+
volumes:
254+
- name: kaniko-secret
255+
secret:
256+
secretName: regcred
257+
items:
258+
- key: .dockerconfigjson
259+
path: config.json
260+
261+
- name: build-push-pre-image-ipam-fn
262+
cluster: default
263+
always_run: true
264+
branches:
265+
- "main"
266+
annotations:
267+
description: Build and Push Presubmit Image to Hub
268+
decorate: true
269+
decoration_config:
270+
censor_secrets: true
271+
max_concurrency: 0
272+
spec:
273+
containers:
274+
- name: kaniko
275+
image: gcr.io/kaniko-project/executor:debug
276+
command:
277+
- "/bin/sh"
278+
- "-c"
279+
- |
280+
executor --context=${PWD} \
281+
--dockerfile=krm-functions/ipam-fn/Dockerfile --destination=nephio/pre-ipam-fn:${BUILD_ID}
282+
volumeMounts:
283+
- name: kaniko-secret
284+
mountPath: /kaniko/.docker/
285+
resources:
286+
requests:
287+
cpu: 1
288+
memory: 1Gi
289+
volumes:
290+
- name: kaniko-secret
291+
secret:
292+
secretName: regcred
293+
items:
294+
- key: .dockerconfigjson
295+
path: config.json
296+
297+
- name: build-push-pre-image-nad-fn
298+
cluster: default
299+
always_run: true
300+
branches:
301+
- "main"
302+
annotations:
303+
description: Build and Push Presubmit Image to Hub
304+
decorate: true
305+
decoration_config:
306+
censor_secrets: true
307+
max_concurrency: 0
308+
spec:
309+
containers:
310+
- name: kaniko
311+
image: gcr.io/kaniko-project/executor:debug
312+
command:
313+
- "/bin/sh"
314+
- "-c"
315+
- |
316+
executor --context=${PWD} \
317+
--dockerfile=krm-functions/nad-fn/Dockerfile --destination=nephio/pre-nad-fn:${BUILD_ID}
318+
volumeMounts:
319+
- name: kaniko-secret
320+
mountPath: /kaniko/.docker/
321+
resources:
322+
requests:
323+
cpu: 1
324+
memory: 1Gi
325+
volumes:
326+
- name: kaniko-secret
327+
secret:
328+
secretName: regcred
329+
items:
330+
- key: .dockerconfigjson
331+
path: config.json
332+
333+
- name: build-push-pre-image-nfdeployfn
334+
cluster: default
335+
always_run: true
336+
branches:
337+
- "main"
338+
annotations:
339+
description: Build and Push Presubmit Image to Hub
340+
decorate: true
341+
decoration_config:
342+
censor_secrets: true
343+
max_concurrency: 0
344+
spec:
345+
containers:
346+
- name: kaniko
347+
image: gcr.io/kaniko-project/executor:debug
348+
command:
349+
- "/bin/sh"
350+
- "-c"
351+
- |
352+
executor --context=${PWD} \
353+
--dockerfile=krm-functions/nfdeploy-fn/Dockerfile --destination=nephio/pre-nfdeploy-fn:${BUILD_ID}
354+
volumeMounts:
355+
- name: kaniko-secret
356+
mountPath: /kaniko/.docker/
357+
resources:
358+
requests:
359+
cpu: 1
360+
memory: 1Gi
361+
volumes:
362+
- name: kaniko-secret
363+
secret:
364+
secretName: regcred
365+
items:
366+
- key: .dockerconfigjson
367+
path: config.json
368+
369+
- name: build-push-pre-image-vlan-fn
370+
cluster: default
371+
always_run: true
372+
branches:
373+
- "main"
374+
annotations:
375+
description: Build and Push Presubmit Image to Hub
376+
decorate: true
377+
decoration_config:
378+
censor_secrets: true
379+
max_concurrency: 0
380+
spec:
381+
containers:
382+
- name: kaniko
383+
image: gcr.io/kaniko-project/executor:debug
384+
command:
385+
- "/bin/sh"
386+
- "-c"
387+
- |
388+
executor --context=${PWD} \
389+
--dockerfile=krm-functions/vlan-fn/Dockerfile --destination=nephio/pre-vlan-fn:${BUILD_ID}
390+
volumeMounts:
391+
- name: kaniko-secret
392+
mountPath: /kaniko/.docker/
393+
resources:
394+
requests:
395+
cpu: 1
396+
memory: 1Gi
397+
volumes:
398+
- name: kaniko-secret
399+
secret:
400+
secretName: regcred
401+
items:
402+
- key: .dockerconfigjson
403+
path: config.json
404+
405+
- name: build-push-pre-image-nephio-operator
406+
cluster: default
407+
always_run: true
408+
branches:
409+
- "main"
410+
annotations:
411+
description: Build and Push Presubmit Image to Hub
412+
decorate: true
413+
decoration_config:
414+
censor_secrets: true
415+
max_concurrency: 0
416+
spec:
417+
containers:
418+
- name: kaniko
419+
image: gcr.io/kaniko-project/executor:debug
420+
command:
421+
- "/bin/sh"
422+
- "-c"
423+
- |
424+
executor --context=${PWD} \
425+
--dockerfile=operators/nephio-controller-manager/Dockerfile --destination=nephio/pre-nephio-operator:${BUILD_ID}
426+
volumeMounts:
427+
- name: kaniko-secret
428+
mountPath: /kaniko/.docker/
429+
resources:
430+
requests:
431+
cpu: 1
432+
memory: 1Gi
433+
volumes:
434+
- name: kaniko-secret
435+
secret:
436+
secretName: regcred
437+
items:
438+
- key: .dockerconfigjson
439+
path: config.json

0 commit comments

Comments
 (0)