Skip to content

Commit

Permalink
test multiple function
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudharysaket committed May 22, 2024
1 parent ec5d3e0 commit 73f34f6
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 64 deletions.
13 changes: 0 additions & 13 deletions Dockerfile

This file was deleted.

95 changes: 44 additions & 51 deletions libBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,55 @@ set -Eeuo pipefail

# Regions that support arm64 architecture
REGIONS_ARM=(
af-south-1
ap-northeast-1
ap-northeast-2
ap-northeast-3
ap-south-1
ap-southeast-1
ap-southeast-2
ap-southeast-3
ca-central-1
eu-central-1
eu-north-1
eu-south-1
eu-west-1
eu-west-2
eu-west-3
me-south-1
sa-east-1
# af-south-1
# ap-northeast-1
# ap-northeast-2
# ap-northeast-3
# ap-south-1
# ap-southeast-1
# ap-southeast-2
# ap-southeast-3
# ca-central-1
# eu-central-1
# eu-north-1
# eu-south-1
# eu-west-1
# eu-west-2
# eu-west-3
# me-south-1
# sa-east-1
us-east-1
us-east-2
us-west-1
# us-east-2
# us-west-1
us-west-2
)

REGIONS_X86=(
af-south-1
ap-northeast-1
ap-northeast-2
ap-northeast-3
ap-south-1
ap-south-2
ap-southeast-1
ap-southeast-2
ap-southeast-3
ap-southeast-4
ca-central-1
eu-central-1
eu-central-2
eu-north-1
eu-south-1
eu-south-2
eu-west-1
eu-west-2
eu-west-3
me-central-1
me-south-1
sa-east-1
# af-south-1
# ap-northeast-1
# ap-northeast-2
# ap-northeast-3
# ap-south-1
# ap-south-2
# ap-southeast-1
# ap-southeast-2
# ap-southeast-3
# ap-southeast-4
# ca-central-1
# eu-central-1
# eu-central-2
# eu-north-1
# eu-south-1
# eu-south-2
# eu-west-1
# eu-west-2
# eu-west-3
# me-central-1
# me-south-1
# sa-east-1
us-east-1
us-east-2
us-west-1
# us-east-2
# us-west-1
us-west-2
)

Expand Down Expand Up @@ -217,7 +217,7 @@ function publish_layer {

hash=$( hash_file $layer_archive | awk '{ print $1 }' )

bucket_name="nr-layers-${region}"
bucket_name="nr-test-saket-layers-${region}"
s3_key="$( s3_prefix $runtime_name )/${hash}.${arch}.zip"

compat_list=( $runtime_name )
Expand Down Expand Up @@ -259,13 +259,6 @@ function publish_layer {
--region "$region"
echo "Public permissions set for ${runtime_name} layer version ${layer_version} in region ${region}"

# Creating layer as a docker image and publishing it in ECR
# Commeting below code for to merge publish docker ecr function code. Will remove this comment once the docker cmd issue fixed.
# if [ "$region" = "us-east-1" ]; then
# publish_docker_ecr $layer_archive $runtime_name $arch $layer_name $layer_version
# fi


}

function publish_docker_ecr {
Expand Down

0 comments on commit 73f34f6

Please sign in to comment.