Skip to content

Commit 3c485fd

Browse files
sync pipelineruns with konflux-central - 45f723f
1 parent 8e41d5c commit 3c485fd

9 files changed

+573
-0
lines changed

.tekton/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# ⚠️ Do Not Modify Files in the `.tekton/` Directory Directly
2+
3+
> 🔴 **Do not edit `.tekton/` files directly in the component repositories.**
4+
5+
The `.tekton/` directory in each component repository is **automatically synchronized** from [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) using automation.
6+
7+
Any edits made directly to Tekton files in the component repositories will be **overwritten** by the next sync.
8+
All Tekton file updates **must be made in the `konflux-central` repository**.
9+
10+
---
11+
12+
## ✅ How to Make Changes
13+
14+
To update Tekton pipeline definitions:
15+
16+
1. Clone the [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) repository.
17+
2. Check out the respective release branch (e.g., `rhoai-2.21`) where you want to make updates.
18+
3. Navigate to `pipelineruns/<repository_name>/.tekton`.
19+
4. Make the required changes to the Tekton YAML files.
20+
5. Commit and push your changes.
21+
6. Once pushed, automation will automatically sync your updates to the corresponding component repository.
22+
23+
---
24+
25+
## 💡 Example
26+
27+
To modify the pipeline for `odh-dashboard` in the `rhoai-2.21` release:
28+
29+
```bash
30+
# Clone the konflux-central repository
31+
git clone [email protected]:red-hat-data-services/konflux-central.git
32+
33+
# Move into the repository directory
34+
cd konflux-central
35+
36+
# Checkout the release branch you want to update (e.g., rhoai-2.21)
37+
git checkout rhoai-2.21
38+
39+
# Navigate to the Tekton files for the specific component
40+
cd pipelineruns/odh-dashboard/.tekton
41+
42+
# Make your changes to the .yml/.yaml files here
43+
44+
# Stage and commit your changes with a meaningful commit message
45+
git commit -am "Update pipelinerun for odh-dashboard (rhoai-2.21)"
46+
47+
# Push the changes to the remote branch
48+
git push origin rhoai-2.21
49+
```
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/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/max-keep-runs: "3"
9+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push"
12+
&& target_branch == "rhoai-2.21"
13+
&& ( !".tekton/**".pathChanged() || ".tekton/odh-workbench-jupyter-datascience-cpu-py311-ubi9-n-v2-21-push.yaml".pathChanged() )
14+
&& ( "jupyter/utils/**".pathChanged() || "jupyter/minimal/ubi9-python-3.11/**".pathChanged() || "jupyter/minimal/ubi9-python-3.11/start-notebook.sh".pathChanged())
15+
&& !"manifests/base/params-latest.env".pathChanged()
16+
creationTimestamp: null
17+
labels:
18+
appstudio.openshift.io/application: external-rhoai-v2-21
19+
appstudio.openshift.io/component: odh-workbench-jupyter-datascience-cpu-py311-ubi9-n-v2-21
20+
pipelines.appstudio.openshift.io/type: build
21+
name: odh-workbench-jupyter-datascience-cpu-py311-ubi9-n-v2-21-on-push
22+
namespace: rhoai-tenant
23+
spec:
24+
params:
25+
- name: git-url
26+
value: '{{source_url}}'
27+
- name: revision
28+
value: '{{revision}}'
29+
- name: output-image
30+
value: quay.io/modh/odh-workbench-jupyter-datascience-cpu-py311-ubi9:{{target_branch}}
31+
- name: additional-tags
32+
value:
33+
- '{{target_branch}}-{{revision}}'
34+
- name: dockerfile
35+
value: jupyter/datascience/ubi9-python-3.11/Dockerfile.cpu
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: false
40+
- name: build-source-image
41+
value: false
42+
- name: build-image-index
43+
value: false
44+
- name: rebuild
45+
value: true
46+
- name: skip-checks
47+
value: true
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/container-build.yaml
57+
taskRunTemplate:
58+
serviceAccountName: build-pipeline-odh-workbench-jupyter-datascience-cpu-py311-ubi9-n-v2-21
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/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/max-keep-runs: "3"
9+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push"
12+
&& target_branch == "rhoai-2.21"
13+
&& ( !".tekton/**".pathChanged() || ".tekton/odh-workbench-jupyter-minimal-cpu-py311-ubi9-n-v2-21-push.yaml".pathChanged() )
14+
&& ( "jupyter/utils/**".pathChanged() || "jupyter/minimal/ubi9-python-3.11/**".pathChanged() )
15+
&& !"manifests/base/params-latest.env".pathChanged()
16+
creationTimestamp: null
17+
labels:
18+
appstudio.openshift.io/application: external-rhoai-v2-21
19+
appstudio.openshift.io/component: odh-workbench-jupyter-minimal-cpu-py311-ubi9-n-v2-21
20+
pipelines.appstudio.openshift.io/type: build
21+
name: odh-workbench-jupyter-minimal-cpu-py311-ubi9-n-v2-21-on-push
22+
namespace: rhoai-tenant
23+
spec:
24+
params:
25+
- name: git-url
26+
value: '{{source_url}}'
27+
- name: revision
28+
value: '{{revision}}'
29+
- name: output-image
30+
value: quay.io/modh/odh-workbench-jupyter-minimal-cpu-py311-ubi9:{{target_branch}}
31+
- name: additional-tags
32+
value:
33+
- '{{target_branch}}-{{revision}}'
34+
- name: dockerfile
35+
value: jupyter/minimal/ubi9-python-3.11/Dockerfile.cpu
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: false
40+
- name: build-source-image
41+
value: false
42+
- name: build-image-index
43+
value: false
44+
- name: rebuild
45+
value: true
46+
- name: skip-checks
47+
value: true
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/container-build.yaml
57+
taskRunTemplate:
58+
serviceAccountName: build-pipeline-odh-workbench-jupyter-minimal-cpu-py311-ubi9-n-v2-21
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/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/max-keep-runs: "3"
9+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push"
12+
&& target_branch == "rhoai-2.21"
13+
&& ( !".tekton/**".pathChanged() || ".tekton/odh-workbench-jupyter-minimal-cuda-py311-ubi9-n-v2-21-push.yaml".pathChanged() )
14+
&& ( "jupyter/utils/**".pathChanged() || "jupyter/minimal/ubi9-python-3.11/**".pathChanged() || "cuda/**".pathChanged())
15+
&& !"manifests/base/params-latest.env".pathChanged()
16+
creationTimestamp: null
17+
labels:
18+
appstudio.openshift.io/application: external-rhoai-v2-21
19+
appstudio.openshift.io/component: odh-workbench-jupyter-minimal-cuda-py311-ubi9-n-v2-21
20+
pipelines.appstudio.openshift.io/type: build
21+
name: odh-workbench-jupyter-minimal-cuda-py311-ubi9-n-v2-21-on-push
22+
namespace: rhoai-tenant
23+
spec:
24+
params:
25+
- name: git-url
26+
value: '{{source_url}}'
27+
- name: revision
28+
value: '{{revision}}'
29+
- name: output-image
30+
value: quay.io/modh/odh-workbench-jupyter-minimal-cuda-py311-ubi9:{{target_branch}}
31+
- name: additional-tags
32+
value:
33+
- '{{target_branch}}-{{revision}}'
34+
- name: dockerfile
35+
value: jupyter/minimal/ubi9-python-3.11/Dockerfile.cuda
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: false
40+
- name: build-source-image
41+
value: false
42+
- name: build-image-index
43+
value: false
44+
- name: rebuild
45+
value: true
46+
- name: skip-checks
47+
value: true
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/container-build.yaml
57+
taskRunTemplate:
58+
serviceAccountName: build-pipeline-odh-workbench-jupyter-minimal-cuda-py311-ubi9-n-v2-21
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/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/max-keep-runs: "3"
9+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push"
12+
&& target_branch == "rhoai-2.21"
13+
&& ( !".tekton/**".pathChanged() || ".tekton/odh-workbench-jupyter-minimal-rocm-py311-ubi9-n-v2-21-push.yaml".pathChanged() )
14+
&& ( "jupyter/utils/**".pathChanged() || "jupyter/minimal/ubi9-python-3.11/**".pathChanged() )
15+
&& !"manifests/base/params-latest.env".pathChanged()
16+
creationTimestamp: null
17+
labels:
18+
appstudio.openshift.io/application: external-rhoai-v2-21
19+
appstudio.openshift.io/component: odh-workbench-jupyter-minimal-rocm-py311-ubi9-n-v2-21
20+
pipelines.appstudio.openshift.io/type: build
21+
name: odh-workbench-jupyter-minimal-rocm-py311-ubi9-n-v2-21-on-push
22+
namespace: rhoai-tenant
23+
spec:
24+
params:
25+
- name: git-url
26+
value: '{{source_url}}'
27+
- name: revision
28+
value: '{{revision}}'
29+
- name: output-image
30+
value: quay.io/modh/odh-workbench-jupyter-minimal-rocm-py311-ubi9:{{target_branch}}
31+
- name: additional-tags
32+
value:
33+
- '{{target_branch}}-{{revision}}'
34+
- name: dockerfile
35+
value: jupyter/minimal/ubi9-python-3.11/Dockerfile.rocm
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: false
40+
- name: build-source-image
41+
value: false
42+
- name: build-image-index
43+
value: false
44+
- name: rebuild
45+
value: true
46+
- name: skip-checks
47+
value: true
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/container-build.yaml
57+
taskRunTemplate:
58+
serviceAccountName: build-pipeline-odh-workbench-jupyter-minimal-rocm-py311-ubi9-n-v2-21
59+
workspaces:
60+
- name: git-auth
61+
secret:
62+
secretName: '{{ git_auth_secret }}'
63+
status: {}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/max-keep-runs: "3"
9+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
10+
pipelinesascode.tekton.dev/on-cel-expression: |
11+
event == "push"
12+
&& target_branch == "rhoai-2.21"
13+
&& ( !".tekton/**".pathChanged() || ".tekton/odh-workbench-jupyter-pytorch-cuda-py311-ubi9-n-v2-21-push.yaml".pathChanged() )
14+
&& ( "jupyter/pytorch/ubi9-python-3.11/**".pathChanged() || "cuda/**".pathChanged()
15+
|| "jupyter/utils/**".pathChanged() || "jupyter/minimal/ubi9-python-3.11/start-notebook.sh".pathChanged()
16+
|| "jupyter/datascience/ubi9-python-3.11/mongodb-org-6.0.repo-x86_64/**".pathChanged()
17+
|| "jupyter/datascience/ubi9-python-3.11/mssql-2022.repo-x86_64/**".pathChanged()
18+
|| "jupyter/datascience/ubi9-python-3.11/setup-elyra.sh".pathChanged()
19+
)
20+
&& !"manifests/base/params-latest.env".pathChanged()
21+
creationTimestamp: null
22+
labels:
23+
appstudio.openshift.io/application: external-rhoai-v2-21
24+
appstudio.openshift.io/component: odh-workbench-jupyter-pytorch-cuda-py311-ubi9-n-v2-21
25+
pipelines.appstudio.openshift.io/type: build
26+
name: odh-workbench-jupyter-pytorch-cuda-py311-ubi9-n-v2-21-on-push
27+
namespace: rhoai-tenant
28+
spec:
29+
params:
30+
- name: git-url
31+
value: '{{source_url}}'
32+
- name: revision
33+
value: '{{revision}}'
34+
- name: output-image
35+
value: quay.io/modh/odh-workbench-jupyter-pytorch-cuda-py311-ubi9:{{target_branch}}
36+
- name: additional-tags
37+
value:
38+
- '{{target_branch}}-{{revision}}'
39+
- name: dockerfile
40+
value: jupyter/pytorch/ubi9-python-3.11/Dockerfile.cuda
41+
- name: path-context
42+
value: .
43+
- name: hermetic
44+
value: false
45+
- name: build-source-image
46+
value: false
47+
- name: build-image-index
48+
value: false
49+
- name: rebuild
50+
value: true
51+
- name: skip-checks
52+
value: true
53+
pipelineRef:
54+
resolver: git
55+
params:
56+
- name: url
57+
value: https://github.com/red-hat-data-services/konflux-central.git
58+
- name: revision
59+
value: '{{ target_branch }}'
60+
- name: pathInRepo
61+
value: pipelines/container-build.yaml
62+
taskRunTemplate:
63+
serviceAccountName: build-pipeline-odh-workbench-jupyter-pytorch-cuda-py311-ubi9-n-v2-21
64+
workspaces:
65+
- name: git-auth
66+
secret:
67+
secretName: '{{ git_auth_secret }}'
68+
status: {}

0 commit comments

Comments
 (0)