File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -399,6 +399,17 @@ jobs:
399
399
fi
400
400
fi
401
401
402
+ # Exclude ubuntu:xenial as its GLIBC is too old to support Node 20 now required to use GitHub Actions
403
+ if [[ "${PACKAGE_BUILD_RULES_PROCESSED_JSON}" != "{}" ]]; then
404
+ CONTROL_JSON=$(echo ${PACKAGE_BUILD_RULES_PROCESSED_JSON} | jq -c)
405
+ MODIFIED_JSON=$(echo ${PACKAGE_BUILD_RULES_PROCESSED_JSON} | jq -c 'del(.image[]? | select(. == "ubuntu:xenial")) | del(.include[]? | select(.image == "ubuntu:xenial"))')
406
+ MODIFIED_JSON=$(echo ${MODIFIED_JSON} | jq -c 'del(.include[]? | select(.os == "ubuntu:xenial"))')
407
+ if [[ "${CONTROL_JSON}" != "${MODIFIED_JSON}" ]]; then
408
+ echo "::warning::Removed ubuntu:xenial image from package_build_rules because its GLIBC is too old to support Node 20 required by GitHub Actions"
409
+ PACKAGE_BUILD_RULES_PROCESSED_JSON="${MODIFIED_JSON}"
410
+ fi
411
+ fi
412
+
402
413
# Exclude ubuntu:bionic as its GLIBC is too old to support Node 20 now required to use GitHub Actions
403
414
if [[ "${PACKAGE_BUILD_RULES_PROCESSED_JSON}" != "{}" ]]; then
404
415
CONTROL_JSON=$(echo ${PACKAGE_BUILD_RULES_PROCESSED_JSON} | jq -c)
You can’t perform that action at this time.
0 commit comments