|
|
|
@ -3,12 +3,12 @@ plugins {
|
|
|
|
|
id 'org.springframework.boot' version '{gradle-project-version}'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bootJar {
|
|
|
|
|
tasks.named("bootJar") {
|
|
|
|
|
mainClass = 'com.example.ExampleApplication'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// tag::docker-auth-user[]
|
|
|
|
|
bootBuildImage {
|
|
|
|
|
tasks.named("bootBuildImage") {
|
|
|
|
|
docker {
|
|
|
|
|
builderRegistry {
|
|
|
|
|
username = "user"
|
|
|
|
@ -20,7 +20,7 @@ bootBuildImage {
|
|
|
|
|
}
|
|
|
|
|
// end::docker-auth-user[]
|
|
|
|
|
|
|
|
|
|
task bootBuildImageDocker {
|
|
|
|
|
tasks.register("bootBuildImageDocker") {
|
|
|
|
|
doFirst {
|
|
|
|
|
println("username=${tasks.bootBuildImage.docker.builderRegistry.username}")
|
|
|
|
|
println("password=${tasks.bootBuildImage.docker.builderRegistry.password}")
|
|
|
|
|