From 18265fd682ad11def790702ad91895661dda8409 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 22 Feb 2022 10:41:05 +0200 Subject: [PATCH] Respect quarkus.container-image.push=true in container-image-docker This same thing is already properly done in container-image-jib Fixes: #23826 --- .../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 3145309f46cd0..edfbfe078edcb 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 @@ -73,7 +73,7 @@ public void dockerBuildFromJar(DockerConfig dockerConfig, @SuppressWarnings("unused") // used to ensure that the jar has been built JarBuildItem jar) { - if (containerImageConfig.isBuildExplicitlyDisabled()) { + if (containerImageConfig.isBuildExplicitlyDisabled() && !containerImageConfig.isPushExplicitlyEnabled()) { return; }