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; }