Skip to content

Commit b591e41

Browse files
authored
add set +e
1 parent 6518cc5 commit b591e41

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/deploy.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,19 @@ jobs:
4848
echo "Deploying service $SERVICE_NAME"
4949
aws ecs update-service --cluster "$SERVICE_NAME" --service "$SERVICE_NAME" --force-new-deployment > /dev/null
5050
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
5157
echo "Waiting for ECS service to stabilize..."
52-
exit_status=1
58+
exit_status=1
59+
set +e
5360
while [ "$exit_status" != "0" ]; do
5461
aws ecs wait services-stable --cluster "$SERVICE_NAME" --services "$SERVICE_NAME"
5562
exit_status="$?"
5663
echo "Wait result: $exit_status"
5764
done
58-
65+
set -e
5966
echo "✅ ECS service stabilized."

0 commit comments

Comments
 (0)