Skip to content

Commit

Permalink
fix: force new deployment (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuskimmina authored Jan 3, 2025
1 parent 0b80d7c commit f8afae3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ecs-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -736,8 +736,13 @@ if [ "$BASH_SOURCE" == "$0" ]; then
assumeRole
fi

# Get current task definition
getCurrentTaskDefinition
echo "Current task definition: $TASK_DEFINITION_ARN";

# Not required creation of new a task definition
if [ $FORCE_NEW_DEPLOYMENT == true ]; then
NEW_TASKDEF=$TASK_DEFINITION_ARN
updateServiceForceNewDeployment
if [[ $SKIP_DEPLOYMENTS_CHECK != true ]]; then
waitForGreenDeployment
Expand All @@ -749,10 +754,6 @@ if [ "$BASH_SOURCE" == "$0" ]; then
parseImageName
echo "Using image name: $useImage"

# Get current task definition
getCurrentTaskDefinition
echo "Current task definition: $TASK_DEFINITION_ARN";

# create new task definition json
createNewTaskDefJson

Expand Down

0 comments on commit f8afae3

Please sign in to comment.