File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ jobs:
219219
220220 TARGET_CONSTRUCTOR="ocm-publish/cli-component-constructor.yaml"
221221
222- echo "✅ Verifying downloaded CLI binaries..."
222+ echo "Verifying downloaded CLI binaries..."
223223 shopt -s nullglob
224224 files=(bin/ocm-*)
225225 (( ${#files[@]} > 0 )) || { echo "❌ No CLI binaries found under ./bin"; ls -la; exit 1; }
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ jobs:
109109 --repository "${OCM_REPOSITORY}" \
110110 --constructor "${CONSTRUCTOR_PATH}"
111111
112- - name : Show published component version
112+ - name : Summarize published component version
113113 env :
114114 OCM_REPOSITORY : ${{ inputs.ocm_repository }}
115115 CLI_IMAGE : ${{ inputs.cli_image }}
@@ -123,18 +123,9 @@ jobs:
123123 COMPONENT_VERSION=$(sed -n 's/^version:[[:space:]]*//p' "${CONSTRUCTOR_FILE}" | head -n 1)
124124
125125 COMPONENT_REF="${OCM_REPOSITORY}//${COMPONENT_NAME}:${COMPONENT_VERSION}"
126+ PKG_PATH="component-descriptors%2F${COMPONENT_NAME//\//%2F}"
127+ PACKAGE_URL="https://github.com/${GITHUB_REPOSITORY}/pkgs/container/${PKG_PATH}"
126128 echo "📦 Published component: ${COMPONENT_REF}"
127129
128- docker run --rm \
129- -v "${HOME}/.docker/config.json:/.docker/config.json:ro" \
130- -v "${HOME}/.ocmconfig:/.ocmconfig:ro" \
131- -v /etc/ssl/certs/:/etc/ssl/certs/:ro \
132- -v "${WORKDIR}:${WORKDIR}" \
133- -w "${WORKDIR}" \
134- "${CLI_IMAGE}" \
135- get cv "${COMPONENT_REF}" \
136- --config "/.ocmconfig" \
137- -oyaml
138-
139130 echo "## Published OCM Component Version" >> "$GITHUB_STEP_SUMMARY"
140- echo "- Reference: ${COMPONENT_REF}" >> "$GITHUB_STEP_SUMMARY"
131+ echo "- Reference: [ ${COMPONENT_REF}](${PACKAGE_URL}) " >> "$GITHUB_STEP_SUMMARY"
You can’t perform that action at this time.
0 commit comments