Skip to content

Commit

Permalink
Do not use TTY
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Nov 13, 2020
1 parent bc3b17f commit ef7c489
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,18 @@ ACCOUNT_ID=$(docker run --rm -v ~/.aws:/root/.aws $CREDENTIALS amazon/aws-cli:$A

ECR_URL="$ACCOUNT_ID.dkr.ecr.$REGION.amazonaws.com"

docker run --rm -ti -v ~/.aws:/root/.aws $CREDENTIALS amazon/aws-cli:$AWS_CLI_TAG ecr get-login-password --region $REGION \
| docker login --username AWS --password-stdin $ECR_URL
PASSWORD=$(docker run --rm -v ~/.aws:/root/.aws $CREDENTIALS amazon/aws-cli:$AWS_CLI_TAG ecr get-login-password --region $REGION)
docker login --username AWS --password $PASSWORD $ECR_URL

docker pull $IMAGE:$TAG

docker tag $IMAGE:$TAG $ECR_URL/$AWS_IMAGE:$TAG

docker push $ECR_URL/$AWS_IMAGE:$TAG

if [ -n "$SKIP_ECS" ]; then
if [ -z "$SKIP_ECS" ]; then
echo ""
echo "Deploying to ECS"
docker run --rm -v ~/.aws:/root/.aws $CREDENTIALS amazon/aws-cli:$AWS_CLI_TAG ecs update-service --cluster $CLUSTER \
--service $SERVICE --force-new-deployment --region $REGION
fi
Expand Down

0 comments on commit ef7c489

Please sign in to comment.