Allow image Created date to be configurable
A `createdDate` option on the Maven `spring-boot:build-image` goal and the Gradle `bootBuildImage` task can be used to set the `Created` metadata field on a generated OCI image to a specified date or to the current date. Closes gh-28798
This commit is contained in:
@@ -203,6 +203,12 @@ The values provided to the `tags` option should be full image references in the
|
||||
| A cache containing layers created by buildpacks and used by the image launching process.
|
||||
| A named volume in the Docker daemon, with a name derived from the image name.
|
||||
|
||||
| `createdDate` +
|
||||
(`spring-boot.build-image.createdDate`)
|
||||
| A date that will be used to set the `Created` field in the generated image's metadata.
|
||||
The value must be a string in the ISO 8601 instant format, or `now` to use the current date and time.
|
||||
| A fixed date that enables https://buildpacks.io/docs/features/reproducibility/[build reproducibility].
|
||||
|
||||
|===
|
||||
|
||||
NOTE: The plugin detects the target Java compatibility of the project using the compiler's plugin configuration or the `maven.compiler.target` property.
|
||||
|
||||
Reference in New Issue
Block a user