Skip to content

Commit ad2f2d6

Browse files
committed
[OPENJDK-4003] label images with opencontainers 'source' label
Amongst other things, this allows GitHub to provide links back from Container Images to the source repository that built them (if we publish Container Images to GHCR.) See <https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys> Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 6cc4abb commit ad2f2d6

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

ubi9-openjdk-17-runtime.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ labels:
2828
value: *name
2929
- name: "version"
3030
value: *version
31+
- name: "org.opencontainers.image.source"
32+
value: "https://github.com/rh-openjdk/redhat-openjdk-containers"
3133

3234
envs:
3335
- name: "JBOSS_IMAGE_NAME"

ubi9-openjdk-17.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ labels:
2828
value: *name
2929
- name: "version"
3030
value: *version
31+
- name: "org.opencontainers.image.source"
32+
value: "https://github.com/rh-openjdk/redhat-openjdk-containers"
3133

3234
envs:
3335
- name: PATH

ubi9-openjdk-21-runtime.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ labels:
2828
value: *name
2929
- name: "version"
3030
value: *version
31+
- name: "org.opencontainers.image.source"
32+
value: "https://github.com/rh-openjdk/redhat-openjdk-containers"
3133

3234
envs:
3335
- name: "JBOSS_IMAGE_NAME"

ubi9-openjdk-21.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ labels:
2828
value: *name
2929
- name: "version"
3030
value: *version
31+
- name: "org.opencontainers.image.source"
32+
value: "https://github.com/rh-openjdk/redhat-openjdk-containers"
3133

3234
envs:
3335
- name: PATH

0 commit comments

Comments
 (0)