fix: do not detect builder-lambda on armhf

While the lambda-builder project builds for armhf, the underlying images are not armhf/arm compatible (only arm64).
This commit is contained in:
Jose Diaz-Gonzalez
2022-05-29 16:51:56 -04:00
parent f549934740
commit f2e791f48f

View File

@@ -7,6 +7,11 @@ trigger-builder-lambda-builder-detect() {
declare desc="builder-lambda builder-detect plugin trigger"
declare trigger="builder-detect"
declare APP="$1" SOURCECODE_WORK_DIR="$2"
local ARCHITECTURE="$(dpkg --print-architecture 2>/dev/null || true)"
if [[ "$ARCHITECTURE" == "armhf" ]]; then
return
fi
if [[ -f "$SOURCECODE_WORK_DIR/lambda.yml" ]]; then
echo "lambda"