Polish "Add documentation for publishing images with Maven command line"

See gh-34517
This commit is contained in:
Scott Frederick 2023-03-09 14:21:08 -06:00
parent 21978da02a
commit ad680ed4ea
1 changed files with 3 additions and 3 deletions

View File

@ -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]
----