Skip to content

Commit 6ac41b6

Browse files
authored
fix duplicate step
1 parent b591e41 commit 6ac41b6

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/deploy.yml

+3-11
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,13 @@ jobs:
4646
SERVICE_NAME: ab2d-${{ vars[format('{0}_DEPLOYMENT_ENV', inputs.environment)] }}-${{ inputs.module }}
4747
run: |
4848
echo "Deploying service $SERVICE_NAME"
49-
aws ecs update-service --cluster "$SERVICE_NAME" --service "$SERVICE_NAME" --force-new-deployment > /dev/null
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
49+
aws ecs update-service --cluster "$SERVICE_NAME" --service "$SERVICE_NAME" --force-new-deployment > /dev/null
5750
echo "Waiting for ECS service to stabilize..."
58-
exit_status=1
59-
set +e
51+
exit_status=1
6052
while [ "$exit_status" != "0" ]; do
6153
aws ecs wait services-stable --cluster "$SERVICE_NAME" --services "$SERVICE_NAME"
6254
exit_status="$?"
6355
echo "Wait result: $exit_status"
6456
done
65-
set -e
6657
echo "✅ ECS service stabilized."
58+

0 commit comments

Comments
 (0)