Repository: quarkusio/quarkus
Issue: Wrong warnings when pushing images using JIB, Docker or BuildPack

### Describe the bug

When using the property `quarkus.container-image.image=quay.io/user/app:1.0`, the extensions `quarkus-container-image-buildpack`, `quarkus-container-image-docker` and `quarkus-container-image-jib` does not read this value but only to the property `quarkus.container-image.registry` and hence, it prints this warning message:

```
[INFO] [io.quarkus.container.image.jib.deployment.JibProcessor] No container image registry was set, so 'docker.io' will be used
```

The good thing is that later in the process, the right registry from `quarkus.container-image.image` is used and the process ends fine. However, the log message is wrong and we need to address it to take into consideration both properties. 

### Expected behavior

_No response_

### Actual behavior

_No response_

### How to Reproduce?

_No response_

### Output of `uname -a` or `ver`

_No response_

### Output of `java -version`

_No response_

### GraalVM version (if different from Java)

_No response_

### Quarkus version or git rev

_No response_

### Build tool (ie. output of `mvnw --version` or `gradlew --version`)

_No response_

### Additional information

_No response_

Changed files:
extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java
extensions/container-image/container-image-buildpack/deployment/src/main/java/io/quarkus/container/image/buildpack/deployment/BuildpackProcessor.java

diff --git a/extensions/container-image/container-image-buildpack/deployment/src/main/java/io/quarkus/container/image/buildpack/deployment/BuildpackProcessor.java b/extensions/container-image/container-image-buildpack/deployment/src/main/java/io/quarkus/container/image/buildpack/deployment/BuildpackProcessor.java
index c3b2a0dbf61..e3592f9f1fb 100644
--- a/extensions/container-image/container-image-buildpack/deployment/src/main/java/io/quarkus/container/image/buildpack/deployment/BuildpackProcessor.java
+++ b/extensions/container-image/container-image-buildpack/deployment/src/main/java/io/quarkus/container/image/buildpack/deployment/BuildpackProcessor.java
@@ -159,7 +159,7 @@ private String runBuildpackBuild(BuildpackConfig buildpackConfig,
         log.debug("Using source root of " + dirs.get(ProjectDirs.SOURCE));
         log.debug("Using project root of " + dirs.get(ProjectDirs.ROOT));
 
-        String targetImageName = containerImage.getImage().toString();
+        String targetImageName = containerImage.getImage();
         log.debug("Using Destination image of " + targetImageName);
 
         Map<String, String> envMap = new HashMap<>(buildpackConfig.builderEnv);
@@ -204,11 +204,13 @@ private String runBuildpackBuild(BuildpackConfig buildpackConfig,
 
         log.info("Buildpack build complete");
         if (containerImageConfig.isPushExplicitlyEnabled() || pushRequest.isPresent()) {
-            if (!containerImageConfig.registry.isPresent()) {
-                log.info("No container image registry was set, so 'docker.io' will be used");
-            }
+            var registry = containerImage.getRegistry()
+                    .orElseGet(() -> {
+                        log.info("No container image registry was set, so 'docker.io' will be used");
+                        return "docker.io";
+                    });
             AuthConfig authConfig = new AuthConfig();
-            authConfig.withRegistryAddress(containerImageConfig.registry.orElse("docker.io"));
+            authConfig.withRegistryAddress(registry);
             containerImageConfig.username.ifPresent(u -> authConfig.withUsername(u));
             containerImageConfig.password.ifPresent(p -> authConfig.withPassword(p));
 
diff --git a/extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java b/extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java
index 989a4026e63..194144ed1ac 100644
--- a/extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java
+++ b/extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java
@@ -264,14 +264,14 @@ private JibContainer containerize(ContainerImageConfig containerImageConfig,
     }
 
     private Containerizer createContainerizer(ContainerImageConfig containerImageConfig,
-            JibConfig jibConfig, ContainerImageInfoBuildItem containerImage,
+            JibConfig jibConfig, ContainerImageInfoBuildItem containerImageInfo,
             boolean pushRequested) {
         Containerizer containerizer;
-        ImageReference imageReference = ImageReference.of(containerImage.getRegistry().orElse(null),
-                containerImage.getRepository(), containerImage.getTag());
+        ImageReference imageReference = ImageReference.of(containerImageInfo.getRegistry().orElse(null),
+                containerImageInfo.getRepository(), containerImageInfo.getTag());
 
         if (pushRequested || containerImageConfig.isPushExplicitlyEnabled()) {
-            if (!containerImageConfig.registry.isPresent()) {
+            if (imageReference.getRegistry() == null) {
                 log.info("No container image registry was set, so 'docker.io' will be used");
             }
             RegistryImage registryImage = toRegistryImage(imageReference, containerImageConfig.username,