Skip to content

Commit 9569da9

Browse files
authored
[ITEP-68209] Add images description + change publishing repo (#242)
[ITEP-68209] Add images description + change publishing repo. This PR adds Docker image metadata labels and updates the publishing repository for container images. The changes ensure proper image documentation and redirect publishing from the current repository to the open-edge-platform/edge-ai-libraries repository. Adds standardized OCI labels (description, vendor, licenses, source, documentation) to all Dockerfiles Updates GitHub Actions workflow to publish images to ghcr.io/open-edge-platform/edge-ai-libraries instead of the current repository
1 parent b09ee5c commit 9569da9

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

.github/workflows/weekly-build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ jobs:
8282
8383
- name: "Tag images"
8484
run: |
85-
docker tag ${{ matrix.images }}:latest ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}
86-
echo "Tagged ${{ matrix.images }}:latest as ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}"
85+
docker tag ${{ matrix.images }}:latest ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}
86+
echo "Tagged ${{ matrix.images }}:latest as ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}"
8787
8888
- name: "Log in to GHCR"
8989
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
@@ -98,7 +98,7 @@ jobs:
9898
- name: "Scan Docker image with Trivy 🔍"
9999
uses: open-edge-platform/orch-ci/.github/actions/security/trivy@65fc743e0c69b8529188b89dede3acfe2897b2e0
100100
with:
101-
scan_target: "ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}"
101+
scan_target: "ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}"
102102
severity: "HIGH"
103103
scan_type: image
104104
format: table
@@ -123,15 +123,15 @@ jobs:
123123

124124
- name: "Push images"
125125
run: |
126-
docker push ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}
126+
docker push ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}
127127
128128
- name: Install skopeo
129129
run: sudo apt update && sudo apt install -y skopeo jq
130130

131131
- name: "Get image digest"
132132
id: digest
133133
env:
134-
IMAGE: ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}
134+
IMAGE: ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}
135135
run: |
136136
DIGEST=$(skopeo inspect docker://$IMAGE | jq -r '.Digest')
137137
echo "digest=${DIGEST}" >> $GITHUB_OUTPUT
@@ -141,14 +141,14 @@ jobs:
141141

142142
- name: "Sign Docker images using Cosign (keyless)"
143143
run: |
144-
cosign sign --yes ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}@${{ steps.digest.outputs.digest }}
145-
echo "Signed ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}@${{ steps.digest.outputs.digest }}"
144+
cosign sign --yes ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}@${{ steps.digest.outputs.digest }}
145+
echo "Signed ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}@${{ steps.digest.outputs.digest }}"
146146
147147
- name: "Save ${{ matrix.images }} image info"
148148
id: save-image-info
149149
run: |
150-
echo "image_name=ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}" >> "$GITHUB_OUTPUT"
151-
echo "image_name=ghcr.io/${{ github.repository }}/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}" >> $GITHUB_STEP_SUMMARY
150+
echo "image_name=ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}" >> "$GITHUB_OUTPUT"
151+
echo "image_name=ghcr.io/open-edge-platform/edge-ai-libraries/intel/${{ matrix.images }}:${{ steps.determine-tag.outputs.image_tag }}" >> $GITHUB_STEP_SUMMARY
152152
echo "image_digest=${{ steps.digest.outputs.digest }}" >> "$GITHUB_OUTPUT"
153153
echo "image_digest=${{ steps.digest.outputs.digest }}" >> $GITHUB_STEP_SUMMARY
154154

autocalibration/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ RUN --mount=type=cache,target=/root/.cache/pip \
6969
# Runtime stage
7070
FROM ubuntu:22.04 AS camcalibration-runtime
7171

72+
# Label image with description and metadata
73+
LABEL org.opencontainers.image.description="Intel® SceneScape's Camera Calibration Service"
74+
LABEL org.opencontainers.image.vendor="Intel Corporation"
75+
LABEL org.opencontainers.image.licenses="Apache-2.0"
76+
LABEL org.opencontainers.image.source="https://github.com/open-edge-platform/scenescape"
77+
LABEL org.opencontainers.image.documentation="https://github.com/open-edge-platform/scenescape/blob/main/autocalibration/docs/user-guide/overview.md"
78+
7279
# Define environment variables first
7380
ARG USER_ID
7481
ARG CERTDOMAIN=scenescape.intel.com

controller/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ RUN cd /tmp/controller \
9393
# -------------- Controller Runtime Stage --------------
9494
FROM ${RUNTIME_OS_IMAGE} AS scenescape-controller-runtime
9595

96+
# Label image with description and metadata
97+
LABEL org.opencontainers.image.description="Intel® SceneScape's Scene Controller Service"
98+
LABEL org.opencontainers.image.vendor="Intel Corporation"
99+
LABEL org.opencontainers.image.licenses="Apache-2.0"
100+
LABEL org.opencontainers.image.source="https://github.com/open-edge-platform/scenescape"
101+
LABEL org.opencontainers.image.documentation="https://github.com/open-edge-platform/scenescape/blob/main/autocalibration/docs/user-guide/overview.md"
102+
96103
ARG USER_ID
97104
ARG CERTDOMAIN=scenescape.intel.com
98105
ARG PYTHON_VERSION=3.12

manager/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ RUN : \
2424
# ---------- Manager Runtime Stage ------------------
2525
FROM ubuntu:22.04 AS scenescape-manager-runtime
2626

27+
# Label image with description and metadata
28+
LABEL org.opencontainers.image.description="Intel® SceneScape Manager Service"
29+
LABEL org.opencontainers.image.vendor="Intel Corporation"
30+
LABEL org.opencontainers.image.licenses="Apache-2.0"
31+
LABEL org.opencontainers.image.source="https://github.com/open-edge-platform/scenescape"
32+
LABEL org.opencontainers.image.documentation="https://github.com/open-edge-platform/scenescape/blob/main/autocalibration/docs/user-guide/overview.md"
33+
2734
USER root
2835
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
2936
ARG USER_ID

0 commit comments

Comments
 (0)