Skip to content

Commit f8afae3

Browse files
fix: force new deployment (#3)
1 parent 0b80d7c commit f8afae3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ecs-deploy

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,13 @@ if [ "$BASH_SOURCE" == "$0" ]; then
736736
assumeRole
737737
fi
738738

739+
# Get current task definition
740+
getCurrentTaskDefinition
741+
echo "Current task definition: $TASK_DEFINITION_ARN";
742+
739743
# Not required creation of new a task definition
740744
if [ $FORCE_NEW_DEPLOYMENT == true ]; then
745+
NEW_TASKDEF=$TASK_DEFINITION_ARN
741746
updateServiceForceNewDeployment
742747
if [[ $SKIP_DEPLOYMENTS_CHECK != true ]]; then
743748
waitForGreenDeployment
@@ -749,10 +754,6 @@ if [ "$BASH_SOURCE" == "$0" ]; then
749754
parseImageName
750755
echo "Using image name: $useImage"
751756

752-
# Get current task definition
753-
getCurrentTaskDefinition
754-
echo "Current task definition: $TASK_DEFINITION_ARN";
755-
756757
# create new task definition json
757758
createNewTaskDefJson
758759

0 commit comments

Comments
 (0)