File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,19 @@ jobs:
48
48
echo "Deploying service $SERVICE_NAME"
49
49
aws ecs update-service --cluster "$SERVICE_NAME" --service "$SERVICE_NAME" --force-new-deployment > /dev/null
50
50
51
+ - name : Deploy ECS service to run on latest image in ECR
52
+ env :
53
+ SERVICE_NAME : ab2d-${{ vars[format('{0}_DEPLOYMENT_ENV', inputs.environment)] }}-${{ inputs.module }}
54
+ run : |
55
+ echo "Deploying service $SERVICE_NAME"
56
+ aws ecs update-service --cluster "$SERVICE_NAME" --service "$SERVICE_NAME" --force-new-deployment > /dev/null
51
57
echo "Waiting for ECS service to stabilize..."
52
- exit_status=1
58
+ exit_status=1
59
+ set +e
53
60
while [ "$exit_status" != "0" ]; do
54
61
aws ecs wait services-stable --cluster "$SERVICE_NAME" --services "$SERVICE_NAME"
55
62
exit_status="$?"
56
63
echo "Wait result: $exit_status"
57
64
done
58
-
65
+ set -e
59
66
echo "✅ ECS service stabilized."
You can’t perform that action at this time.
0 commit comments