From f2e791f48fa67c9108ef5ca563981e70e9c48b33 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 29 May 2022 16:51:56 -0400 Subject: [PATCH] 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). --- plugins/builder-lambda/builder-detect | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/builder-lambda/builder-detect b/plugins/builder-lambda/builder-detect index 1f87e2ae3..930c41ef1 100755 --- a/plugins/builder-lambda/builder-detect +++ b/plugins/builder-lambda/builder-detect @@ -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"