From 97f70df7b143195e8fd58199944f0036a192a518 Mon Sep 17 00:00:00 2001 From: Saket Chaudhary Date: Wed, 26 Jun 2024 20:02:37 +0530 Subject: [PATCH] docker --- libBuild.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libBuild.sh b/libBuild.sh index 7ceaba4..7956c28 100644 --- a/libBuild.sh +++ b/libBuild.sh @@ -334,8 +334,15 @@ function publish_docker_hub { file_without_dist=$layer_archive echo "File does not start with 'dist/': $file_without_dist" fi - echo "docker build -t $language_flag:${version_flag} --build-arg docker_arn=${arns} ." - docker build -t $language_flag:${version_flag} --build-arg docker_arn=${arns} . + + echo "docker build -t $language_flag:${version_flag} \ + --build-arg layer_zip=${layer_archive} \ + --build-arg file_without_dist=${file_without_dist} \ + ." + docker build -t $language_flag:${version_flag} \ + --build-arg layer_zip=${layer_archive} \ + --build-arg file_without_dist=${file_without_dist} \ + . docker tag $language_flag:${version_flag} newrelic/newrelic-lambda-layers:$language_flag-${version_flag} docker push newrelic/newrelic-lambda-layers:$language_flag-${version_flag} }