File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,15 @@ runs:
106106 run : |
107107 if [[ -n "${{ inputs.registry_namespace }}" && "${{ inputs.registry_image }}" ]] ; then
108108 ibmcloud cr login
109- echo "endpoint=private.${{inputs.code_engine_region%%-*}}" >> "$GITHUB_OUTPUT"
110- # echo "workload_image=--image private.${{inputs.code_engine_region%%-*}}/${{ inputs.registry_namespace }}/${{ inputs.registry_image }}" >> "$GITHUB_OUTPUT"
109+ echo "endpoint=$(ibmcloud cr region | grep -i 'icr.io' | cut -d "'" -f4)" >> "$GITHUB_ENV"
111110 else
112- echo "endpoint=" >> "$GITHUB_OUTPUT "
111+ echo "endpoint=" >> "$GITHUB_ENV "
113112 fi
114113
114+ - name : Set short SHA
115+ shell : bash
116+ run : echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
117+
115118 # if ibmcloud ce secret get --name "${{ inputs.workload_name }}-ce-cr-secret" > /dev/null 2>&1; then
116119 # echo "registry_secret=--registry-secret ${{ inputs.workload_name }}-ce-cr-secret" >> "$GITHUB_OUTPUT"
117120 # else
You can’t perform that action at this time.
0 commit comments