Update S3 buckets and ECR for migration
- Use S3 bucket in Arm infrastrcture
- As there are multiple environments such as (DEV, TEST, PROD)
suffix bucket with INRA_ENV name.
- Use system variable for ECR repository
Change-Id: Id75bb5a49305a7abc059741f8bcb4e60595fbf1a
Signed-off-by: Saheer Babu <saheer.babu@arm.com>
diff --git a/misra-docker-images/builders.sh b/misra-docker-images/builders.sh
index 977d4c9..c4bbffd 100755
--- a/misra-docker-images/builders.sh
+++ b/misra-docker-images/builders.sh
@@ -14,12 +14,12 @@
cd misra-dockerfiles
aws configure list
-export ECR=987685672616.dkr.ecr.us-east-1.amazonaws.com
+export ECR=${PRIVATE_CONTAINER_REGISTRY}
# we are expecting private files to be kept in the dockerfiles/*
# subdirs with a matching name for the image
-aws s3 cp --recursive s3://trustedfirmware-misra/dockerfiles/ .
+aws s3 cp --recursive s3://openci-trustedfirmware-misra-${INFRA_ENV}/dockerfiles/ .
find .
-aws ecr get-login-password --region us-east-1|docker login --username AWS --password-stdin $ECR
+aws ecr get-login-password --region eu-west-1|docker login --username AWS --password-stdin $ECR
was_error=0