Skip to content

Commit 472b5b0

Browse files
change to endpoint
1 parent 6c9165e commit 472b5b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)