build icon indicating copy to clipboard operation
build copied to clipboard

[FEATURE] BuildRun Overrides for Git Source

Open adambkaplan opened this issue 7 months ago • 2 comments

Is there an existing feature request for this?

  • [x] I have searched the existing feature requests

Is your feature request related to a problem or use-case? Please describe.

When experimenting with code, I'd like to create a Build object once for a given "base" source repository, and then execute BuildRuns for a specific branch or fork.

Describe the solution that you would like.

In BuildRun, allow spec.source to override the Git repository and revision.

Describe alternatives you have considered.

The alternative is to create separate Build objects per repository and fork. This adds toil to developers.

Anything else?

Ran into this trying to test UBI Buildpacks (Quarkus stack) with Shipwright. See https://github.com/redhat-buildpacks/testing/blob/main/.github/workflows/shipwright.yaml#L82-L85.

adambkaplan avatar May 20 '25 12:05 adambkaplan

Makes sense. This may actually be a dependency for the GitHub trigger as that allows to trigger a buildrun for different branches which do not necessarily have to match the revision of the source. And then the resulting BuildRun should imo be one which is trigger for the branch (or rather commit) of the GitHub event and not the revision defined in the Build source.

Ref: https://github.com/shipwright-io/triggers/issues/45

SaschaSchwarze0 avatar Jun 03 '25 20:06 SaschaSchwarze0

/assign

satyamg1620 avatar Jul 14 '25 13:07 satyamg1620