Skip to content

Commit 2b62fc5

Browse files
sync pipelineruns with konflux-central - 697f842
1 parent 4cdefae commit 2b62fc5

5 files changed

+297
-0
lines changed

.tekton/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# ⚠️ Do Not Modify Files in the `.tekton/` Directory Directly
2+
3+
The `.tekton/` directory in each component repository is **automatically synchronized** from [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) using automation. Any edits made directly to Tekton files in the component repositories will be **overwritten** by the next sync.
4+
5+
All Tekton file updates **must be made in the `konflux-central` repository**.
6+
7+
## ✅ How to Make Changes
8+
9+
To modify the pipelines for `distributed-workloads` in the `rhoai-2.25` release:
10+
11+
- Clone the [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) repository.
12+
13+
```bash
14+
git clone [email protected]:red-hat-data-services/konflux-central.git
15+
cd konflux-central
16+
```
17+
18+
- Check out the release branch
19+
20+
```bash
21+
git checkout rhoai-2.25
22+
```
23+
24+
- Navigate to the Tekton files for your component(s).
25+
26+
```bash
27+
cd pipelineruns/distributed-workloads/.tekton
28+
```
29+
30+
- Make the required changes to the Tekton YAML files.
31+
32+
- Commit and push your changes.
33+
34+
```bash
35+
git commit -am "Update pipelinerun for distributed-workloads (rhoai-2.25)"
36+
git push origin rhoai-2.25
37+
```
38+
39+
- Once pushed, automation will automatically sync your updates to the corresponding component repository.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/distributed-workloads?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "build/operator-nudging.yaml"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push" && target_branch == "rhoai-2.25"
13+
&& ( "images/runtime/training/py311-cuda121-torch241/**".pathChanged() || ".tekton/odh-training-cuda121-torch24-py311-v2-25-push.yaml".pathChanged() )
14+
labels:
15+
appstudio.openshift.io/application: rhoai-v2-25
16+
appstudio.openshift.io/component: odh-training-cuda121-torch24-py311-v2-25
17+
pipelines.appstudio.openshift.io/type: build
18+
name: odh-training-cuda121-torch24-py311-v2-25-on-push
19+
namespace: rhoai-tenant
20+
spec:
21+
params:
22+
- name: git-url
23+
value: '{{source_url}}'
24+
- name: revision
25+
value: '{{revision}}'
26+
- name: additional-tags
27+
value:
28+
- '{{target_branch}}-{{revision}}'
29+
- name: additional-labels
30+
value:
31+
- version=v2.25.0
32+
- io.openshift.tags=odh-training-cuda121-torch24-py311
33+
- name: output-image
34+
value: quay.io/rhoai/odh-training-cuda121-torch24-py311-rhel9:{{target_branch}}
35+
- name: dockerfile
36+
value: Dockerfile.konflux
37+
- name: path-context
38+
value: images/runtime/training/py311-cuda121-torch241
39+
- name: hermetic
40+
value: false
41+
- name: build-source-image
42+
value: true
43+
- name: build-image-index
44+
value: true
45+
- name: build-platforms
46+
value:
47+
- linux/x86_64
48+
pipelineRef:
49+
resolver: git
50+
params:
51+
- name: url
52+
value: https://github.com/red-hat-data-services/konflux-central.git
53+
- name: revision
54+
value: '{{ target_branch }}'
55+
- name: pathInRepo
56+
value: pipelines/multi-arch-container-build.yaml
57+
taskRunTemplate:
58+
serviceAccountName: build-pipeline-odh-training-cuda121-torch24-py311-v2-25
59+
workspaces:
60+
- name: git-auth
61+
secret:
62+
secretName: '{{ git_auth_secret }}'
63+
status: {}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/distributed-workloads?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "build/operator-nudging.yaml"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push" && target_branch == "rhoai-2.25"
13+
&& ( "images/runtime/training/py311-cuda124-torch251/**".pathChanged() || ".tekton/odh-training-cuda124-torch25-py311-v2-25-push.yaml".pathChanged() )
14+
labels:
15+
appstudio.openshift.io/application: rhoai-v2-25
16+
appstudio.openshift.io/component: odh-training-cuda124-torch25-py311-v2-25
17+
pipelines.appstudio.openshift.io/type: build
18+
name: odh-training-cuda124-torch25-py311-v2-25-on-push
19+
namespace: rhoai-tenant
20+
spec:
21+
params:
22+
- name: git-url
23+
value: '{{source_url}}'
24+
- name: revision
25+
value: '{{revision}}'
26+
- name: additional-tags
27+
value:
28+
- '{{target_branch}}-{{revision}}'
29+
- name: additional-labels
30+
value:
31+
- version=v2.25.0
32+
- io.openshift.tags=odh-training-cuda124-torch25-py311
33+
- name: output-image
34+
value: quay.io/rhoai/odh-training-cuda124-torch25-py311-rhel9:{{target_branch}}
35+
- name: dockerfile
36+
value: Dockerfile.konflux
37+
- name: path-context
38+
value: images/runtime/training/py311-cuda124-torch251
39+
- name: hermetic
40+
value: false
41+
- name: build-source-image
42+
value: true
43+
- name: build-image-index
44+
value: true
45+
- name: build-platforms
46+
value:
47+
- linux/x86_64
48+
pipelineRef:
49+
resolver: git
50+
params:
51+
- name: url
52+
value: https://github.com/red-hat-data-services/konflux-central.git
53+
- name: revision
54+
value: '{{ target_branch }}'
55+
- name: pathInRepo
56+
value: pipelines/multi-arch-container-build.yaml
57+
taskRunTemplate:
58+
serviceAccountName: build-pipeline-odh-training-cuda124-torch25-py311-v2-25
59+
workspaces:
60+
- name: git-auth
61+
secret:
62+
secretName: '{{ git_auth_secret }}'
63+
status: {}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/distributed-workloads?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "build/operator-nudging.yaml"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push" && target_branch == "rhoai-2.25"
13+
&& ( "images/runtime/training/py311-rocm62-torch241/**".pathChanged() || ".tekton/odh-training-rocm62-torch24-py311-v2-25-push.yaml".pathChanged() )
14+
labels:
15+
appstudio.openshift.io/application: rhoai-v2-25
16+
appstudio.openshift.io/component: odh-training-rocm62-torch24-py311-v2-25
17+
pipelines.appstudio.openshift.io/type: build
18+
name: odh-training-rocm62-torch24-py311-v2-25-on-push
19+
namespace: rhoai-tenant
20+
spec:
21+
timeouts:
22+
pipeline: 10h
23+
tasks: 8h
24+
params:
25+
- name: git-url
26+
value: '{{source_url}}'
27+
- name: revision
28+
value: '{{revision}}'
29+
- name: additional-tags
30+
value:
31+
- '{{target_branch}}-{{revision}}'
32+
- name: additional-labels
33+
value:
34+
- version=v2.25.0
35+
- io.openshift.tags=odh-training-rocm62-torch24-py311
36+
- name: output-image
37+
value: quay.io/rhoai/odh-training-rocm62-torch24-py311-rhel9:{{target_branch}}
38+
- name: dockerfile
39+
value: Dockerfile.konflux
40+
- name: path-context
41+
value: images/runtime/training/py311-rocm62-torch241
42+
- name: hermetic
43+
value: false
44+
- name: build-source-image
45+
value: true
46+
- name: build-image-index
47+
value: true
48+
- name: build-platforms
49+
value:
50+
- linux-extra-fast/amd64
51+
pipelineRef:
52+
resolver: git
53+
params:
54+
- name: url
55+
value: https://github.com/red-hat-data-services/konflux-central.git
56+
- name: revision
57+
value: '{{ target_branch }}'
58+
- name: pathInRepo
59+
value: pipelines/multi-arch-container-build.yaml
60+
taskRunTemplate:
61+
serviceAccountName: build-pipeline-odh-training-rocm62-torch24-py311-v2-25
62+
workspaces:
63+
- name: git-auth
64+
secret:
65+
secretName: '{{ git_auth_secret }}'
66+
status: {}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/distributed-workloads?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "build/operator-nudging.yaml"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push" && target_branch == "rhoai-2.25"
13+
&& ( "images/runtime/training/py311-rocm62-torch251/**".pathChanged() || ".tekton/odh-training-rocm62-torch25-py311-v2-25-push.yaml".pathChanged() )
14+
labels:
15+
appstudio.openshift.io/application: rhoai-v2-25
16+
appstudio.openshift.io/component: odh-training-rocm62-torch25-py311-v2-25
17+
pipelines.appstudio.openshift.io/type: build
18+
name: odh-training-rocm62-torch25-py311-v2-25-on-push
19+
namespace: rhoai-tenant
20+
spec:
21+
timeouts:
22+
pipeline: 10h
23+
tasks: 8h
24+
params:
25+
- name: git-url
26+
value: '{{source_url}}'
27+
- name: revision
28+
value: '{{revision}}'
29+
- name: additional-tags
30+
value:
31+
- '{{target_branch}}-{{revision}}'
32+
- name: additional-labels
33+
value:
34+
- version=v2.25.0
35+
- io.openshift.tags=odh-training-rocm62-torch25-py311
36+
- name: output-image
37+
value: quay.io/rhoai/odh-training-rocm62-torch25-py311-rhel9:{{target_branch}}
38+
- name: dockerfile
39+
value: Dockerfile.konflux
40+
- name: path-context
41+
value: images/runtime/training/py311-rocm62-torch251
42+
- name: hermetic
43+
value: false
44+
- name: build-source-image
45+
value: true
46+
- name: build-image-index
47+
value: true
48+
- name: build-platforms
49+
value:
50+
- linux-extra-fast/amd64
51+
pipelineRef:
52+
resolver: git
53+
params:
54+
- name: url
55+
value: https://github.com/red-hat-data-services/konflux-central.git
56+
- name: revision
57+
value: '{{ target_branch }}'
58+
- name: pathInRepo
59+
value: pipelines/multi-arch-container-build.yaml
60+
taskRunTemplate:
61+
serviceAccountName: build-pipeline-odh-training-rocm62-torch25-py311-v2-25
62+
workspaces:
63+
- name: git-auth
64+
secret:
65+
secretName: '{{ git_auth_secret }}'
66+
status: {}

0 commit comments

Comments
 (0)