From c245792899cf1c56e606fc48b5ab962304d88984 Mon Sep 17 00:00:00 2001 From: Saket Chaudhary <118331906+chaudharysaket@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:19:17 +0530 Subject: [PATCH 1/2] publish extension only ecr images (#265) --- extension/publish-layer.sh | 2 ++ libBuild.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/extension/publish-layer.sh b/extension/publish-layer.sh index 9dcffbc7..92bd1a52 100755 --- a/extension/publish-layer.sh +++ b/extension/publish-layer.sh @@ -49,6 +49,8 @@ function publish-layer-arm64 { build-layer-x86 publish-layer-x86 +publish_docker_ecr $EXTENSION_DIST_ZIP_X86_64 extension x86_64 build-layer-arm64 publish-layer-arm64 +publish_docker_ecr $EXTENSION_DIST_ZIP_ARM64 extension arm64 diff --git a/libBuild.sh b/libBuild.sh index fc62d17c..e199f171 100644 --- a/libBuild.sh +++ b/libBuild.sh @@ -269,6 +269,9 @@ function publish_docker_ecr { version_flag=$(echo "$runtime_name" | sed 's/[^0-9]//g') language_flag=$(echo "$runtime_name" | sed 's/[0-9].*//') + if [[ ${runtime_name} =~ 'extension' ]]; + then version_flag=$EXTENSION_VERSION + fi # Remove 'dist/' prefix if [[ $layer_archive == dist/* ]]; then From e71d75bf0892325488452bb90f69fc66ca66ef03 Mon Sep 17 00:00:00 2001 From: Saket Chaudhary <118331906+chaudharysaket@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:23:35 +0530 Subject: [PATCH 2/2] update image repo name (#266) * update image repo name --- libBuild.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libBuild.sh b/libBuild.sh index e199f171..b6700db9 100644 --- a/libBuild.sh +++ b/libBuild.sh @@ -269,8 +269,9 @@ function publish_docker_ecr { version_flag=$(echo "$runtime_name" | sed 's/[^0-9]//g') language_flag=$(echo "$runtime_name" | sed 's/[0-9].*//') - if [[ ${runtime_name} =~ 'extension' ]]; - then version_flag=$EXTENSION_VERSION + if [[ ${runtime_name} =~ 'extension' ]]; then + version_flag=$EXTENSION_VERSION + language_flag="lambdaextension" fi # Remove 'dist/' prefix