Skip to content

Commit ad680ed

Browse files
Polish "Add documentation for publishing images with Maven command line"
See gh-34517
1 parent 21978da commit ad680ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ The `publish` option can be specified on the command line as well, as shown in t
357357
$ mvn spring-boot:build-image -Dspring-boot.build-image.imageName=docker.example.com/library/my-app:v1 -Dspring-boot.build-image.publish=true
358358
----
359359

360-
If you intend to invoke the `publish` option on the command line, with authentication, you'll need the combination of this command line:
360+
When using the `publish` option on the command line with authentication, you can provide credentials using properties as in this example:
361361

362362
[indent=0]
363363
----
@@ -366,10 +366,10 @@ If you intend to invoke the `publish` option on the command line, with authentic
366366
-Ddocker.publishRegistry.password=secret \
367367
-Ddocker.publishRegistry.url=docker.example.com \
368368
-Dspring-boot.build-image.publish=true \
369-
-Dspring-boot.build-image.imageName=docker.example.com/library/my-app:v1 \
369+
-Dspring-boot.build-image.imageName=docker.example.com/library/my-app:v1
370370
----
371371

372-
and this XML configuration:
372+
and reference the properties in the XML configuration:
373373

374374
[source,xml,indent=0,subs="verbatim,attributes",tabsize=4]
375375
----

0 commit comments

Comments
 (0)