|
1 | 1 | # ⚠️ Do Not Modify Files in the `.tekton/` Directory Directly
|
2 | 2 |
|
3 |
| -> 🔴 **Do not edit `.tekton/` files directly in the component repositories.** |
| 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 | 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 | 5 | All Tekton file updates **must be made in the `konflux-central` repository**.
|
9 | 6 |
|
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. |
| 7 | +## ✅ How to Make Changes |
22 | 8 |
|
23 |
| ---- |
| 9 | +To modify the pipelines for `notebooks` in the `rhoai-2.21` release: |
24 | 10 |
|
25 |
| -## 💡 Example |
26 |
| - |
27 |
| -To modify the pipeline for `odh-dashboard` in the `rhoai-2.21` release: |
| 11 | +- Clone the [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) repository. |
28 | 12 |
|
29 | 13 | ```bash
|
30 |
| -# Clone the konflux-central repository |
31 | 14 | git clone [email protected]:red-hat-data-services/konflux-central.git
|
32 |
| - |
33 |
| -# Move into the repository directory |
34 | 15 | cd konflux-central
|
| 16 | +``` |
| 17 | + |
| 18 | +- Check out the release branch |
35 | 19 |
|
36 |
| -# Checkout the release branch you want to update (e.g., rhoai-2.21) |
| 20 | +```bash |
37 | 21 | git checkout rhoai-2.21
|
| 22 | +``` |
38 | 23 |
|
39 |
| -# Navigate to the Tekton files for the specific component |
40 |
| -cd pipelineruns/odh-dashboard/.tekton |
| 24 | +- Navigate to the Tekton files for your component(s). |
41 | 25 |
|
42 |
| -# Make your changes to the .yml/.yaml files here |
| 26 | +```bash |
| 27 | +cd pipelineruns/notebooks/.tekton |
| 28 | +``` |
43 | 29 |
|
44 |
| -# Stage and commit your changes with a meaningful commit message |
45 |
| -git commit -am "Update pipelinerun for odh-dashboard (rhoai-2.21)" |
| 30 | +- Make the required changes to the Tekton YAML files. |
46 | 31 |
|
47 |
| -# Push the changes to the remote branch |
| 32 | +- Commit and push your changes. |
| 33 | + |
| 34 | +```bash |
| 35 | +git commit -am "Update pipelinerun for notebooks (rhoai-2.21)" |
48 | 36 | git push origin rhoai-2.21
|
49 | 37 | ```
|
| 38 | + |
| 39 | +- Once pushed, automation will automatically sync your updates to the corresponding component repository. |
0 commit comments