Skip to content

Commit

Permalink
Replaced hard coded aws region with variable
Browse files Browse the repository at this point in the history
  • Loading branch information
binarymist committed Jul 16, 2020
1 parent 2c99fda commit 55595aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildAndDeployCloudImages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ echo
echo "Tagging the images................................................................................"
echo

docker tag nodegoat_web:latest $AWS_ACCOUNT_ID.dkr.ecr.ap-southeast-2.amazonaws.com/suts/nodegoat:latest
docker tag nodegoat_web:latest $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/suts/nodegoat:latest

echo "The following images are currently in the suts/nodegoat repository..............................."
echo
Expand All @@ -31,7 +31,7 @@ echo

echo "Pushing the new images............................................................................"
echo
docker push $AWS_ACCOUNT_ID.dkr.ecr.ap-southeast-2.amazonaws.com/suts/nodegoat:latest
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/suts/nodegoat:latest
echo
echo "After pushing, the following images are currently in the suts/nodegoat repository................"
echo
Expand Down

0 comments on commit 55595aa

Please sign in to comment.