From 6452f5fdb8f27e1e7fd14d524499d4c96dcb4b94 Mon Sep 17 00:00:00 2001 From: nscuro Date: Tue, 17 Jan 2023 21:09:15 +0100 Subject: [PATCH] Fix redundant push when using buildx Fixes #30424 --- .../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 a9bc9b2e303f2..f6a5d79ab181d 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 @@ -221,7 +221,7 @@ private String createContainerImage(ContainerImageConfig containerImageConfig, D } } - if (pushContainerImage) { + if (!useBuildx && pushContainerImage) { // If not using buildx, push the images loginToRegistryIfNeeded(containerImageConfig, containerImageInfo, dockerConfig);