build-info
Bake build-time release metadata into a container image
Bake build-time release version and date metadata into the system-wide container-info command.
Example Usage
{
"features": {
"ghcr.io/MiguelRodo/DevContainerFeatures/build-info:1": {
"imageVersion": "${localEnv:IMAGE_VERSION}",
"buildDate": "${localEnv:IMAGE_BUILD_DATE}"
}
}
}Options
| Option | Type | Default | Description |
|---|---|---|---|
imageVersion |
string | - | The automated version number injected from the runner host environment. Valid formats include 1, v1.2, 1.2.3.4, and v2.0-12. |
buildDate |
string | - | If left empty, automatically sets to the current date and time formatted as an ISO 8601 UTC timestamp. |
Usage
After the container is built, run:
container-infoThe command reports the version and build date embedded during the image build.