Skip to content

Commit 975449e

Browse files
authored
Update master_deploy.sh
1 parent 1e6acc7 commit 975449e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

master_deploy.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ ECS_push_ecr_image() {
137137
ECS_TAG=$CIRCLE_BUILD_NUM
138138
fi
139139
log "Pushing Docker Image..."
140-
eval $(aws ecr get-login --region $AWS_REGION --no-include-email)
140+
#eval $(aws ecr get-login --region $AWS_REGION --no-include-email)
141+
aws ecr get-login-password --region $AWS_REGION | docker -D login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com
141142
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$AWS_REPOSITORY:$ECS_TAG
142143
track_error $? "ECS ECR image push"
143144
log "Docker Image published."
@@ -155,7 +156,8 @@ ECSCLI_push_ecr_image() {
155156
ECS_TAG=$CIRCLE_BUILD_NUM
156157
fi
157158
log "Pushing Docker Image..."
158-
eval $(aws ecr get-login --region $AWS_REGION --no-include-email)
159+
#eval $(aws ecr get-login --region $AWS_REGION --no-include-email)
160+
aws ecr get-login-password --region $AWS_REGION | docker -D login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com
159161
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$ECS_REPONAME:$ECS_TAG
160162
track_error $? "ECS ECR image push"
161163
log "Docker Image published."
@@ -890,7 +892,8 @@ if [ "$DEPLOYMENT_TYPE" == "ECS" ]
890892
then
891893
if [ "$DEPLOYCATEGORY" == "CLI" ]
892894
then
893-
eval $(aws ecr get-login --region $AWS_REGION --no-include-email)
895+
#eval $(aws ecr get-login --region $AWS_REGION --no-include-email)
896+
aws ecr get-login-password --region $AWS_REGION | docker -D login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com
894897
#Moving image to repository
895898
if [ -z $APP_IMAGE_NAME ];
896899
then

0 commit comments

Comments
 (0)