Red Hat Training
A Red Hat training course is available for OpenShift Container Platform
8.4.3. 输出镜像标签
Docker 和 Source 构建在输出镜像上设置以下标签:
| 标签 | 描述 |
|---|---|
|
| 构建中使用的源提交的作者 |
|
| 构建中使用的源提交的日期 |
|
| 构建中使用的源提交的哈希值 |
|
| 构建中使用的源提交的消息 |
|
| 源中指定的分支或引用 |
|
| 构建的源 URL |
您还可以使用 BuildConfig.spec.output.imageLabels 字段指定将应用到从 BuildConfig 构建的每个镜像的自定义标签列表。
应用到所构建镜像的自定义标签
spec:
output:
to:
kind: "ImageStreamTag"
name: "my-image:latest"
imageLabels:
- name: "vendor"
value: "MyCompany"
- name: "authoritative-source-url"
value: "registry.mycompany.com"