|
| 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 | +``` |
0 commit comments