Skip to content

Commit

Permalink
Only build images for x86 on PRs (#352)
Browse files Browse the repository at this point in the history
Multi-platform builds are slow and on PRs don't make a lot of sense.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
pierDipi authored Oct 16, 2024
1 parent 2443782 commit f0be111
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/konfluxgen/pipeline-run.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ spec:
value: 5d
- name: output-image
value: quay.io/redhat-user-workloads/ocp-serverless-tenant/{{{ truncate ( sanitize .ApplicationName ) }}}/{{{ truncate ( sanitize .ProjectDirectoryImageBuildStepConfiguration.To ) }}}:on-pr-{{revision}}
{{{- if ne .Pipeline "fbc-builder" }}}
- name: build-platforms
value: linux/x86_64
{{{- end }}}
{{{- else }}}
- name: output-image
value: quay.io/redhat-user-workloads/ocp-serverless-tenant/{{{ truncate ( sanitize .ApplicationName ) }}}/{{{ truncate ( sanitize .ProjectDirectoryImageBuildStepConfiguration.To ) }}}:{{revision}}
Expand Down

0 comments on commit f0be111

Please sign in to comment.