Skip to content
Success

Changes

Summary

  1. refactor(tekton/v1): refactor ga release flow (#4092) (commit: 528bd9d) (details)
Commit 528bd9d7414fe22ddc7458b1d154f85f3a396b72 by noreply
refactor(tekton/v1): refactor ga release flow (#4092)

This pull request updates the Tekton pipeline for the GA release
process, mainly by replacing the `tag-rc2ga-on-oci-artifacts` task with
a new, more comprehensive `tag-and-deliver-rc2ga-on-oci-artifacts` task.
It also improves parameterization and error handling, and ensures that
registry information is consistently passed to relevant tasks.

Key changes include:

**Pipeline and Task Enhancements:**

* Replaced the old `tag-rc2ga-on-oci-artifacts` task with a new
`tag-and-deliver-rc2ga-on-oci-artifacts` task, which adds steps for both
tagging and delivering images and non-image artifacts, and introduces
support for publisher integration.
(`tekton/v1/pipelines/pingcap-release-ga.yaml`,
`tekton/v1/tasks/release/tag-and-delivery-rc2ga-on-oci-artifacts.yaml`,
`tekton/v1/tasks/release/tag-rc2ga-on-oci-artifacts.yaml`,
`tekton/v1/tasks/kustomization.yaml`)
[[1]](diffhunk://#diff-bac849553be941ad99016eaf5b895e6d53a615100d547e4444872e16ee1b5c0bR39-R42)
[[2]](diffhunk://#diff-736ccd6c2ab65301098c707c8131533e39a0299b6803a977ad5422c128d90a24L31-R31)
[[3]](diffhunk://#diff-a8352a08da1203e171edc1926649b706b5140c7fdbd7a3bb6037d5f1f812babbR1-R113)
[[4]](diffhunk://#diff-81086175a1e1f5f10ef9339eedf4909fbf21667a4c902367f2c32e944edbd70fL1-L41)

* Added a new pipeline parameter `publisher-url` with a default value,
enabling dynamic configuration of the publisher service endpoint.
(`tekton/v1/pipelines/pingcap-release-ga.yaml`)

* Updated the pipeline to pass the `publisher-url` and `registry`
parameters to the relevant tasks, improving flexibility and consistency.
(`tekton/v1/pipelines/pingcap-release-ga.yaml`)
[[1]](diffhunk://#diff-bac849553be941ad99016eaf5b895e6d53a615100d547e4444872e16ee1b5c0bR39-R42)
[[2]](diffhunk://#diff-bac849553be941ad99016eaf5b895e6d53a615100d547e4444872e16ee1b5c0bR81)
[[3]](diffhunk://#diff-bac849553be941ad99016eaf5b895e6d53a615100d547e4444872e16ee1b5c0bR104)
[[4]](diffhunk://#diff-bac849553be941ad99016eaf5b895e6d53a615100d547e4444872e16ee1b5c0bR127)
[[5]](diffhunk://#diff-bac849553be941ad99016eaf5b895e6d53a615100d547e4444872e16ee1b5c0bR150)
[[6]](diffhunk://#diff-bac849553be941ad99016eaf5b895e6d53a615100d547e4444872e16ee1b5c0bR173)
[[7]](diffhunk://#diff-bac849553be941ad99016eaf5b895e6d53a615100d547e4444872e16ee1b5c0bR196)

**Error Handling Improvements:**

* Changed error handling in `scripts/flow/rc/check-images-internal.ts`
to use `console.error` and `Deno.exit(1)` instead of throwing errors,
providing clearer CLI feedback and proper exit codes for CI/CD.
(commit: 528bd9d)
The file was modifiedscripts/flow/rc/check-images-internal.ts (diff)
The file was removedtekton/v1/tasks/release/tag-rc2ga-on-oci-artifacts.yaml
The file was modifiedtekton/v1/pipelines/pingcap-release-ga.yaml (diff)
The file was addedtekton/v1/tasks/release/tag-and-delivery-rc2ga-on-oci-artifacts.yaml
The file was modifiedtekton/v1/tasks/kustomization.yaml (diff)