Commit
aa1dc84b1c9ac07530bd6e4ef5f863717aad3290
by noreplyci(tekton): use dynamic registry for hotfix builds (#4459)
This pull request updates how the container registry is selected for
Tekton pipeline triggers, making the selection dynamic based on the
event type. Instead of hardcoding the registry, the configuration now
determines whether to use the hotfix or dev registry by inspecting the
event header. This improves flexibility and ensures that hotfix builds
are pushed to the correct registry.
**Dynamic registry selection based on event type:**
* Added a `registry` parameter to multiple trigger files (PR, branch
push, and tag creation), which uses an expression to select the hotfix
or dev registry depending on whether the event type starts with
`net.pingcap.tibuild.hotfix.`
(`tekton/v1/triggers/triggers/env-prod2/_/fake-github/fake-github-branch-push.yaml`,
`fake-github-branch-push-single-platform.yaml`, `fake-github-pr.yaml`,
`fake-github-pr-single-platform.yaml`, `fake-github-tag-create.yaml`,
`fake-github-tag-create-single-platform.yaml`)
[[1]](diffhunk://#diff-701e172d7957f7729eb568b89eb3792f67986d0be3d087c888ee3f11ce921b0cR148-R152)
[[2]](diffhunk://#diff-6a91abaebf470476a3ede56259ce3a9aea4c03d6e7a551bfa00b5a38fa9ef712R150-R155)
[[3]](diffhunk://#diff-f69e7eca2ab1ea5e98e43f6fee3bfb5c896d32ba6e6b4b69d81664ee422a8904R148-R153)
[[4]](diffhunk://#diff-9d850ebf70c39ddd5babcf9dc7fc5fe058ab9f61ead3f04e6a5fb103974f6591R150-R155)
[[5]](diffhunk://#diff-e1424e05dfaa1f85fe71d2e0365337c7fcad48767eead843e042e248d0dcf1a0R148-R153)
[[6]](diffhunk://#diff-c613d97eae5f67f2326053c71fca1985b8b8e7a3bfb2c60a0be9aac9407cf838R152-R157)
**Parameterization of build registry:**
* Updated the `ksy-dev-build-params.yaml` binding to use the dynamically
determined `registry` value from the trigger extensions, instead of a
hardcoded dev registry value
(`tekton/v1/triggers/bindings/ksy-dev-build-params.yaml`)
(commit: aa1dc84)