Skip to content

Commit 75074ec

Browse files
sync pipelineruns with konflux-central - 2071361
1 parent 89ad6c6 commit 75074ec

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-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 `codeflare-operator` in the `main` branch:
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 branch
19+
20+
```bash
21+
git checkout main
22+
```
23+
24+
- Navigate to the Tekton files for your component(s).
25+
26+
```bash
27+
cd pipelineruns/codeflare-operator/.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 codeflare-operator (main)"
36+
git push origin main
37+
```
38+
39+
- Once pushed, automation will automatically sync your updates to the corresponding component repository.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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/codeflare-operator?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
build.appstudio.redhat.com/pull_request_number: "{{pull_request_number}}"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
pipelinesascode.tekton.dev/on-comment: "^/build-konflux"
11+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
12+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
13+
labels:
14+
appstudio.openshift.io/application: automation
15+
appstudio.openshift.io/component: pull-request-pipelines-odh-codeflare-operator
16+
pipelines.appstudio.openshift.io/type: build
17+
name: odh-codeflare-operator-on-pull-request
18+
namespace: rhoai-tenant
19+
spec:
20+
params:
21+
- name: git-url
22+
value: '{{source_url}}'
23+
- name: revision
24+
value: '{{revision}}'
25+
- name: additional-tags
26+
value:
27+
- 'pr-{{pull_request_number}}-into-{{target_branch}}'
28+
- name: additional-labels
29+
value:
30+
- version=on-pr-{{revision}}
31+
- io.openshift.tags=odh-codeflare-operator
32+
- name: output-image
33+
value: quay.io/rhoai/pull-request-pipelines:odh-codeflare-operator-{{revision}}
34+
- name: dockerfile
35+
value: Dockerfile.konflux
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: true
40+
- name: prefetch-input
41+
value: |
42+
[{"type": "gomod"}]
43+
- name: build-source-image
44+
value: true
45+
- name: build-image-index
46+
value: true
47+
- name: build-platforms
48+
value:
49+
- linux/x86_64
50+
- name: image-expires-after
51+
value: 5d
52+
pipelineRef:
53+
resolver: git
54+
params:
55+
- name: url
56+
value: https://github.com/red-hat-data-services/konflux-central.git
57+
- name: revision
58+
value: '{{ target_branch }}'
59+
- name: pathInRepo
60+
value: pipelines/multi-arch-container-build.yaml
61+
taskRunTemplate:
62+
serviceAccountName: build-pipeline-pull-request-pipelines
63+
workspaces:
64+
- name: git-auth
65+
secret:
66+
secretName: '{{ git_auth_secret }}'
67+
status: {}

0 commit comments

Comments
 (0)