From 9e34a8f02c4dd6b1ee16021d8c0cd4dd022a6378 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 8 Mar 2022 10:22:25 +0200 Subject: [PATCH] Respect quarkus.container-image.push=true in container-image-docker for native build Follows up on: #23861 --- .../container/image/docker/deployment/DockerProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/container-image/container-image-docker/deployment/src/main/java/io/quarkus/container/image/docker/deployment/DockerProcessor.java b/extensions/container-image/container-image-docker/deployment/src/main/java/io/quarkus/container/image/docker/deployment/DockerProcessor.java index edfbfe078edcb..a6ba789958ddd 100644 --- a/extensions/container-image/container-image-docker/deployment/src/main/java/io/quarkus/container/image/docker/deployment/DockerProcessor.java +++ b/extensions/container-image/container-image-docker/deployment/src/main/java/io/quarkus/container/image/docker/deployment/DockerProcessor.java @@ -125,7 +125,7 @@ public void dockerBuildFromNativeImage(DockerConfig dockerConfig, // used to ensure that the native binary has been built NativeImageBuildItem nativeImage) { - if (containerImageConfig.isBuildExplicitlyDisabled()) { + if (containerImageConfig.isBuildExplicitlyDisabled() && !containerImageConfig.isPushExplicitlyEnabled()) { return; }