This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 5bb3b267ca1315d6b7e28da85eeaa240c7207b70
Author: Antonin Stefanutti <anto...@stefanutti.fr>
AuthorDate: Wed Aug 18 14:58:46 2021 +0200

    chore(native): Report the native runner as the only image artifact
---
 pkg/builder/image.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkg/builder/image.go b/pkg/builder/image.go
index ac33a6f..637ca97 100644
--- a/pkg/builder/image.go
+++ b/pkg/builder/image.go
@@ -66,12 +66,14 @@ func nativeImageContext(ctx *builderContext) error {
                runner := "camel-k-integration-" + defaults.Version + "-runner"
 
                ctx.BaseImage = "quay.io/quarkus/quarkus-distroless-image:1.0"
-               ctx.SelectedArtifacts = []v1.Artifact{
+               ctx.Artifacts = []v1.Artifact{
                        {
+                               ID:       runner,
                                Location: path.Join(ctx.Path, "maven", 
"target", runner),
                                Target:   runner,
                        },
                }
+               ctx.SelectedArtifacts = ctx.Artifacts
 
                return nil
        })

Reply via email to