From 366405e952bdeaa7aeb81c49c5de12fc46d42358 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 18 May 2020 14:19:59 +0000 Subject: [PATCH 1/2] Command line example for setting custom image name The Maven docs have an example, so it seems like a good idea to have one here too. --- .../src/docs/asciidoc/packaging-oci-image.adoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc index d70cd032e7f1..e621fd4f5243 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc @@ -151,4 +151,11 @@ include::../gradle/packaging/boot-build-image-name.gradle.kts[tags=image-name] ---- Note that this configuration does not provide an explicit tag so `latest` is used. -It is possible to specify a tag as well, either using `${project.version}`, any property available in the build or a hardcoded version. \ No newline at end of file +It is possible to specify a tag as well, either using `${project.version}`, any property available in the build or a hardcoded version. + +The builder can be specified on the command line as well, as shown in this example: + +[indent=0] +---- +$ gradle bootBuildImage --imageName=example.com/library/v1 +---- From 20b51afb59c0f1e28af96fad3a1eba44e1001afa Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 18 May 2020 15:01:55 +0000 Subject: [PATCH 2/2] Correct typo --- .../src/docs/asciidoc/packaging-oci-image.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc index e621fd4f5243..e4c16fc214af 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc @@ -153,7 +153,7 @@ include::../gradle/packaging/boot-build-image-name.gradle.kts[tags=image-name] Note that this configuration does not provide an explicit tag so `latest` is used. It is possible to specify a tag as well, either using `${project.version}`, any property available in the build or a hardcoded version. -The builder can be specified on the command line as well, as shown in this example: +The image name can be specified on the command line as well, as shown in this example: [indent=0] ----