commit
6f65777035
|
|
@ -374,6 +374,9 @@ The generated image can be published to a Docker registry by enabling a `publish
|
||||||
If the Docker registry requires authentication, the credentials can be configured using `docker.publishRegistry` properties.
|
If the Docker registry requires authentication, the credentials can be configured using `docker.publishRegistry` properties.
|
||||||
If the Docker registry does not require authentication, the `docker.publishRegistry` configuration can be omitted.
|
If the Docker registry does not require authentication, the `docker.publishRegistry` configuration can be omitted.
|
||||||
|
|
||||||
|
NOTE: The registry that the image will be published to is determined by the registry part of the image name (`docker.example.com` in these examples).
|
||||||
|
If `docker.publishRegistry` credentials are configured and include a `url` property, this value is passed to the registry but is not used to determine the publishing registry location.
|
||||||
|
|
||||||
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
|
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
|
||||||
.Groovy
|
.Groovy
|
||||||
----
|
----
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@ tasks.named("bootBuildImage") {
|
||||||
publishRegistry {
|
publishRegistry {
|
||||||
username = "user"
|
username = "user"
|
||||||
password = "secret"
|
password = "secret"
|
||||||
url = "https://docker.example.com/v1/"
|
|
||||||
email = "user@example.com"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@ tasks.named<BootBuildImage>("bootBuildImage") {
|
||||||
publishRegistry {
|
publishRegistry {
|
||||||
username = "user"
|
username = "user"
|
||||||
password = "secret"
|
password = "secret"
|
||||||
url = "https://docker.example.com/v1/"
|
|
||||||
email = "user@example.com"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -344,6 +344,9 @@ The generated image can be published to a Docker registry by enabling a `publish
|
||||||
If the Docker registry requires authentication, the credentials can be configured using `docker.publishRegistry` parameters.
|
If the Docker registry requires authentication, the credentials can be configured using `docker.publishRegistry` parameters.
|
||||||
If the Docker registry does not require authentication, the `docker.publishRegistry` configuration can be omitted.
|
If the Docker registry does not require authentication, the `docker.publishRegistry` configuration can be omitted.
|
||||||
|
|
||||||
|
NOTE: The registry that the image will be published to is determined by the registry part of the image name (`docker.example.com` in these examples).
|
||||||
|
If `docker.publishRegistry` credentials are configured and include a `url` parameter, this value is passed to the registry but is not used to determine the publishing registry location.
|
||||||
|
|
||||||
[source,xml,indent=0,subs="verbatim,attributes",tabsize=4]
|
[source,xml,indent=0,subs="verbatim,attributes",tabsize=4]
|
||||||
----
|
----
|
||||||
include::../maven/packaging-oci-image/docker-pom.xml[tags=docker]
|
include::../maven/packaging-oci-image/docker-pom.xml[tags=docker]
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@
|
||||||
<publishRegistry>
|
<publishRegistry>
|
||||||
<username>user</username>
|
<username>user</username>
|
||||||
<password>secret</password>
|
<password>secret</password>
|
||||||
<url>https://docker.example.com/v1/</url>
|
|
||||||
<email>user@example.com</email>
|
|
||||||
</publishRegistry>
|
</publishRegistry>
|
||||||
</docker>
|
</docker>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue