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