Skip to content

Commit

Permalink
FIX archive variable assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
ramesh-maddegoda committed Aug 15, 2024
1 parent 15f2c6e commit 02f54f2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions terraform/terraform-modules/ecs-ecr/docker/deploy-ecr-images.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 02f54f2

Please sign in to comment.