From 02f54f215dd3cb3a1a3a5d6150eebec60e1c9bc3 Mon Sep 17 00:00:00 2001 From: Ramesh Maddegoda <94033485+ramesh-maddegoda@users.noreply.github.com> Date: Thu, 15 Aug 2024 13:39:59 -0700 Subject: [PATCH] FIX archive variable assignments --- .../ecs-ecr/docker/deploy-ecr-images.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/terraform/terraform-modules/ecs-ecr/docker/deploy-ecr-images.sh b/terraform/terraform-modules/ecs-ecr/docker/deploy-ecr-images.sh index 19b29e9..ebf3226 100755 --- a/terraform/terraform-modules/ecs-ecr/docker/deploy-ecr-images.sh +++ b/terraform/terraform-modules/ecs-ecr/docker/deploy-ecr-images.sh @@ -1,26 +1,26 @@ #!/bin/bash # Login to ECR -aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 441083951559.dkr.ecr.us-west-2.amazonaws.com +aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com # Deploy pds-nucleus-config-init ECR image cd ./terraform-modules/ecs-ecr/docker/config-init docker build -t pds-nucleus-config-init . -docker tag pds-nucleus-config-init:latest 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-config-init:latest -docker push 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-config-init:latest +docker tag pds-nucleus-config-init:latest "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-config-init:latest +docker push "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-config-init:latest # Deploy pds-nucleus-s3-to-efs-copy ECR image cd ../s3-to-efs-copy docker build -t pds-nucleus-s3-to-efs-copy . -docker tag pds-nucleus-s3-to-efs-copy:latest 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-s3-to-efs-copy:latest -docker push 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-s3-to-efs-copy:latest +docker tag pds-nucleus-s3-to-efs-copy:latest "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-s3-to-efs-copy:latest +docker push "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-nucleus-s3-to-efs-copy:latest # Deploy pds-registry-loader-harvest ECR image docker image pull nasapds/registry-loader -docker tag nasapds/registry-loader:latest 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-registry-loader-harvest:latest -docker push 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-registry-loader-harvest:latest +docker tag nasapds/registry-loader:latest "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-registry-loader-harvest:latest +docker push "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-registry-loader-harvest:latest # Deploy pds-validate ECR image docker image pull nasapds/validate -docker tag nasapds/validate:latest 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-validate:latest -docker push 441083951559.dkr.ecr.us-west-2.amazonaws.com/pds-validate:latest +docker tag nasapds/validate:latest "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-validate:latest +docker push "${pds_nucleus_aws_account_id}".dkr.ecr.us-west-2.amazonaws.com/pds-validate:latest