Skip to content

Commit c71b227

Browse files
sync pipelineruns with konflux-central - ee81632
1 parent 5359126 commit c71b227

File tree

2 files changed

+123
-0
lines changed

2 files changed

+123
-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 `openvino_model_server` in the `rhoai-3.2` 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-3.2
22+
```
23+
24+
- Navigate to the Tekton files for your component(s).
25+
26+
```bash
27+
cd pipelineruns/openvino_model_server/.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 openvino_model_server (rhoai-3.2)"
36+
git push origin rhoai-3.2
37+
```
38+
39+
- Once pushed, automation will automatically sync your updates to the corresponding component repository.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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/openvino_model_server?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"
13+
&& target_branch == "rhoai-3.2"
14+
&& ( !".tekton/**".pathChanged() || ".tekton/odh-openvino-model-server-v3-2-push.yaml".pathChanged() )
15+
labels:
16+
appstudio.openshift.io/application: rhoai-v3-2
17+
appstudio.openshift.io/component: odh-openvino-model-server-v3-2
18+
pipelines.appstudio.openshift.io/type: build
19+
name: odh-openvino-model-server-v3-2-on-push
20+
namespace: rhoai-tenant
21+
spec:
22+
timeouts:
23+
pipeline: 8h
24+
tasks: 8h
25+
params:
26+
- name: git-url
27+
value: '{{source_url}}'
28+
- name: revision
29+
value: '{{revision}}'
30+
- name: output-image
31+
value: quay.io/rhoai/odh-openvino-model-server-rhel9:{{target_branch}}
32+
- name: additional-tags
33+
value:
34+
- '{{target_branch}}-{{revision}}'
35+
- name: additional-labels
36+
value:
37+
- version=v3.2.0
38+
- io.openshift.tags=odh-openvino-model-server
39+
- name: dockerfile
40+
value: Dockerfile.konflux
41+
- name: path-context
42+
value: .
43+
- name: hermetic
44+
value: false
45+
- name: build-source-image
46+
value: true
47+
- name: build-image-index
48+
value: true
49+
- name: fetch-git-tags
50+
value: true
51+
- name: clone-depth
52+
value: "2147483647"
53+
- name: build-platforms
54+
value:
55+
- linux-extra-fast/amd64
56+
- name: build-args-file
57+
value: .konflux/build-args.conf
58+
taskRunSpecs:
59+
- pipelineTaskName: build-images
60+
stepSpecs:
61+
- name: build
62+
computeResources:
63+
requests:
64+
cpu: '8'
65+
memory: 16Gi
66+
limits:
67+
cpu: '16'
68+
memory: 32Gi
69+
pipelineRef:
70+
resolver: git
71+
params:
72+
- name: url
73+
value: https://github.com/red-hat-data-services/konflux-central.git
74+
- name: revision
75+
value: '{{ target_branch }}'
76+
- name: pathInRepo
77+
value: pipelines/multi-arch-container-build.yaml
78+
taskRunTemplate:
79+
serviceAccountName: build-pipeline-odh-openvino-model-server-v3-2
80+
workspaces:
81+
- name: git-auth
82+
secret:
83+
secretName: '{{ git_auth_secret }}'
84+
status: {}

0 commit comments

Comments
 (0)