Skip to content

Commit

Permalink
add CLIENT_NAME variable
Browse files Browse the repository at this point in the history
  • Loading branch information
claisonamorim committed Oct 3, 2019
1 parent f7d6095 commit 3019a06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ echo "---> Creating deployment with CodeDeploy"

# Update the ECS service to use the updated Task version
aws ecs deploy \
--service $APP_NAME \
--service $CLIENT_NAME-$APP_NAME \
--task-definition ./task-definition.json \
--cluster $CLUSTER_NAME \
--codedeploy-appspec ./app-spec.json \
Expand All @@ -41,6 +41,11 @@ sleep 5 # Wait for deployment to be created so we can fetch DEPLOYMENT_ID next

DEPLOYMENT_ID=$(aws deploy list-deployments --application-name=$CLUSTER_NAME-$CLIENT_NAME-$APP_NAME --deployment-group=$CLUSTER_NAME-$CLIENT_NAME-$APP_NAME --max-items=1 --query="deployments[0]" --output=text | head -n 1)

echo $DEPLOYMENT_ID
echo $CLIENT_NAME
echo $CLUSTER_NAME
echo $APP_NAME

echo "---> For More Deployment info: https://$AWS_DEFAULT_REGION.console.aws.amazon.com/codesuite/codedeploy/deployments/$DEPLOYMENT_ID"

echo "---> Waiting for Deployment ..."
Expand Down

0 comments on commit 3019a06

Please sign in to comment.