File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
build/docker/python_lambda Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ if [ "$(find . -maxdepth 1 -name "*.zip" | wc -l)" = "1" ]; then
1010 unzip " ${path} " -d /opt
1111else
1212 echo " Fetching from latest GitHub release"
13- curl -fsSLO https://github.com/DataDog/datadog-lambda-python/releases/latest/download/datadog_lambda_py-amd64-3.13.zip
14- unzip -o datadog_lambda_py-amd64-3.13.zip -d /opt
13+ ARCH=$( uname -m | sed ' s/x86_64/amd64/' | sed ' s/aarch64/arm64/' )
14+ echo https://github.com/DataDog/datadog-lambda-python/releases/latest/download/datadog_lambda_py-" $ARCH " -3.13.zip
15+ curl -fsSLO https://github.com/DataDog/datadog-lambda-python/releases/latest/download/datadog_lambda_py-" $ARCH " -3.13.zip
16+ unzip -o datadog_lambda_py-" $ARCH " -3.13.zip -d /opt
1517
16- if [ ! -f datadog_lambda_py-amd64 -3.13.zip ]; then
17- echo " Failed to download datadog_lambda_py-amd64 -3.13.zip"
18+ if [ ! -f datadog_lambda_py-" $ARCH " -3.13.zip ]; then
19+ echo " Failed to download datadog_lambda_py-" " $ARCH " " -3.13.zip"
1820 exit 1
1921 fi
2022fi
Original file line number Diff line number Diff line change @@ -351,9 +351,9 @@ elif [ "$TARGET" = "waf_rule_set" ]; then
351351
352352elif [ " $TARGET " = " python_lambda" ]; then
353353 assert_version_is_dev
354- assert_target_branch_is_not_set
355354
356- get_github_action_artifact " DataDog/datadog-lambda-python" " build_layer.yml" " main" " datadog-lambda-python-3.13-amd64" " datadog_lambda_py-amd64-3.13.zip" " false"
355+ LIBRARY_TARGET_BRANCH=" ${LIBRARY_TARGET_BRANCH:- main} "
356+ get_github_action_artifact " DataDog/datadog-lambda-python" " build_layer.yml" $LIBRARY_TARGET_BRANCH " datadog-lambda-python-3.13-amd64" " datadog_lambda_py-amd64-3.13.zip" " false"
357357
358358elif [ " $TARGET " = " otel_collector" ]; then
359359 assert_version_is_dev
You can’t perform that action at this time.
0 commit comments