File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,16 @@ jobs:
2525 steps :
2626 - name : Get Image Platforms
2727 id : get-platforms
28+ shell : bash -o pipefail {0}
2829 run : |
2930 PLATFORMS="$(docker manifest inspect ${{ inputs.image }} | \
3031 jq -r '.manifests[] | "\(.platform.os)/\(.platform.architecture)\(if .platform.variant != null then "/\(.platform.variant)" else "" end)"' | \
3132 sort -u | grep -v unknown | paste -sd ',')"
33+ if [ ! -n "${PLATFORMS}" ]
34+ then
35+ echo "Cannot get list of platforms supported by the ${{ inputs.image }}." >&2
36+ exit 1
37+ fi
3238 BUILD_MATRIX="$(echo ${PLATFORMS} | tr ',' '\n' | jq -R . | jq -s . | tr '\n' ' ')"
3339 echo "platforms=${PLATFORMS}" >> $GITHUB_OUTPUT
3440 echo "build-matrix=${BUILD_MATRIX}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments