Skip to content

Commit

Permalink
Polish "Add documentation for publishing images with Maven command line"
Browse files Browse the repository at this point in the history
  • Loading branch information
scottfrederick committed Mar 21, 2023
1 parent 21978da commit ad680ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand All @@ -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]
----
Expand Down

0 comments on commit ad680ed

Please sign in to comment.