@@ -6,8 +6,10 @@ metadata:
6
6
build.appstudio.redhat.com/commit_sha : ' {{revision}}'
7
7
build.appstudio.redhat.com/target_branch : ' {{target_branch}}'
8
8
pipelinesascode.tekton.dev/max-keep-runs : " 3"
9
- pipelinesascode.tekton.dev/on-cel-expression : event == "push" && target_branch
10
- == "main"
9
+ pipelinesascode.tekton.dev/on-cel-expression : |
10
+ event == "push"
11
+ && target_branch == "main"
12
+ && ( "images/runtime/training/cuda/**".pathChanged() || ".tekton/training-cuda-push.yaml".pathChanged() )
11
13
creationTimestamp : null
12
14
labels :
13
15
appstudio.openshift.io/application : training
@@ -22,11 +24,29 @@ spec:
22
24
- name : revision
23
25
value : ' {{revision}}'
24
26
- name : output-image
25
- value : quay.io/redhat-user-workloads/rhoai-tenant/training-cuda:{{revision}}
27
+ value : quay.io/modh/training:py311-cuda121-torch241
28
+ - name : additional-tag
29
+ value : py311-cuda121-torch241-{{revision}}
26
30
- name : dockerfile
27
31
value : Dockerfile
28
32
- name : path-context
29
- value : images/runtime/training /cuda
33
+ value : images/runtime/training/cuda
34
+ taskRunSpecs :
35
+ - pipelineTaskName : build-container
36
+ stepSpecs :
37
+ - name : build
38
+ computeResources :
39
+ requests :
40
+ memory : 10Gi
41
+ limits :
42
+ memory : 10Gi
43
+ - pipelineTaskName : prefetch-dependencies
44
+ computeResources :
45
+ requests :
46
+ cpu : ' 1'
47
+ memory : 2Gi
48
+ limits :
49
+ memory : 2Gi
30
50
pipelineSpec :
31
51
description : |
32
52
This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization.
48
68
value : task
49
69
resolver : bundles
50
70
params :
71
+ - name : additional-tag
72
+ type : string
73
+ description : Additional fixed tag for the image
51
74
- description : Source Repository URL
52
75
name : git-url
53
76
type : string
@@ -404,6 +427,9 @@ spec:
404
427
params :
405
428
- name : IMAGE
406
429
value : $(tasks.build-image-index.results.IMAGE_URL)
430
+ - name : ADDITIONAL_TAGS
431
+ value :
432
+ - " $(params.additional-tag)"
407
433
runAfter :
408
434
- build-image-index
409
435
taskRef :
0 commit comments