From ad680ed4ea14f1c6ac9ffe82193ee5fab148af37 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Thu, 9 Mar 2023 14:21:08 -0600 Subject: [PATCH] Polish "Add documentation for publishing images with Maven command line" See gh-34517 --- .../src/docs/asciidoc/packaging-oci-image.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc index e1ea3b923b5..38f3d6cc6dc 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc @@ -357,7 +357,7 @@ The `publish` option can be specified on the command line as well, as shown in t $ mvn spring-boot:build-image -Dspring-boot.build-image.imageName=docker.example.com/library/my-app:v1 -Dspring-boot.build-image.publish=true ---- -If you intend to invoke the `publish` option on the command line, with authentication, you'll need the combination of this command line: +When using the `publish` option on the command line with authentication, you can provide credentials using properties as in this example: [indent=0] ---- @@ -366,10 +366,10 @@ If you intend to invoke the `publish` option on the command line, with authentic -Ddocker.publishRegistry.password=secret \ -Ddocker.publishRegistry.url=docker.example.com \ -Dspring-boot.build-image.publish=true \ - -Dspring-boot.build-image.imageName=docker.example.com/library/my-app:v1 \ + -Dspring-boot.build-image.imageName=docker.example.com/library/my-app:v1 ---- -and this XML configuration: +and reference the properties in the XML configuration: [source,xml,indent=0,subs="verbatim,attributes",tabsize=4] ----