I am trying to use gradle SpringBoot plugin version 2.4.2 in a project and build a docker image using bootBuildImage task. when i try o build docker image with a tag that containes slash the build will fail because the slash is not allowed in the tag i guess.
Her is a snipt of the customized gradle bootBuildImage in my project gradle file:
bootBuildImage { imageName = "hello-world:${art_contextUrl}/docker-repo" publish = false docker { publishRegistry { username = "${art_user}" password = "${art_password}" url = "${art_contextUrl}/docker-repo" } } }
The tag is consisted of context url of repository / repository. But the task will fail. If i use simple tag lik 0.0.1 the task will complite and a docker image will be created.
How do I tag the image correctly without using docker tag command, i mean just taging from the bootBuildImage task