Skip to content

Commit 197bdca

Browse files
fix(tibuild): set image platform from pipeline if not specified (#314)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1d57d3d commit 197bdca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tibuild/pkg/rest/service/dev_build_service.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,10 @@ func collectTektonArtifacts(pipelines []TektonPipeline, report *BuildReport) {
456456
report.Binaries = append(report.Binaries, ociArtifactToFiles(pipeline.Platform, files)...)
457457
}
458458
for _, image := range pipeline.Images {
459-
img := ImageArtifact{Platform: pipeline.Platform, URL: image.URL}
460-
report.Images = append(report.Images, img)
459+
if image.Platform == "" {
460+
image.Platform = pipeline.Platform
461+
}
462+
report.Images = append(report.Images, image)
461463
}
462464
}
463465
}

0 commit comments

Comments
 (0)