Source-to-Image (S2I)
builds set the following labels on output images:
Label | Description |
---|---|
|
Author of the source commit used in the build |
|
Date of the source commit used in the build |
|
Hash of the source commit used in the build |
|
Message of the source commit used in the build |
|
Branch or reference specified in the source |
|
Source URL for the build |
You can also use the BuildConfig.spec.output.imageLabels
field to specify a
list of custom labels that will be applied to each image built from the
BuildConfig
.
Custom Labels to be Applied to Built Images
spec:
output:
to:
kind: "ImageStreamTag"
name: "my-image:latest"
imageLabels:
- name: "vendor"
value: "MyCompany"
- name: "authoritative-source-url"
value: "registry.mycompany.com"