Skip to content

Commit

Permalink
Add flag to copy tags into new task definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpacaFur committed Feb 8, 2024
1 parent d4846d5 commit 1585f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/prod/redeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ for service_index in "${!DEPLOY_INDEXES[@]}"; do
TASK_FAMILY="${TASK_FAMILIES[$i]}"
SERVICE="${SERVICES[$i]}"
# fetch template for task definition
TASK_DEFINITION=$(aws ecs describe-task-definition --task-definition "$TASK_FAMILY" --region "$AWS_DEFAULT_REGION")
TASK_DEFINITION=$(aws ecs describe-task-definition --task-definition "$TASK_FAMILY" --region "$AWS_DEFAULT_REGION") --include "TAGS"
# update the template's image to use the latest ECR_IMAGE
NEW_TASK_DEFINITION=$(echo $TASK_DEFINITION | jq --arg IMAGE "$ECR_IMAGE" '.taskDefinition | .containerDefinitions[0].image = $IMAGE | del(.taskDefinitionArn) | del(.revision) | del(.status) | del(.requiresAttributes) | del(.compatibilities) | del(.registeredAt) | del(.registeredBy)')
# register the new revision for the task definition
Expand Down

0 comments on commit 1585f7d

Please sign in to comment.