File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,21 @@ aws ecs update-service \
9898
9999# # Now we wait till it's stable
100100echo " --- :ecs: Waiting for services to stabilize"
101+ deploy_exitcode=0
101102aws ecs wait services-stable \
102103 --cluster " ${cluster} " \
103- --services " ${service_name} "
104+ --services " ${service_name} " || deploy_exitcode= $?
104105
105- aws ecs describe-services \
106- --cluster " ${cluster} " \
107- --service " ${service_name} "
108106
109- echo " +++ :ecs: Service is up π"
107+ services_events=$( aws ecs describe-services \
108+ --cluster " ${cluster} " \
109+ --service " ${service_name} " )
110+
111+ if [[ $deploy_exitcode -eq 0 ]]; then
112+ echo " --- :ecs: Service is up π"
113+ echo $service_events
114+ else
115+ echo " +++ :ecs: Service failed to deploy β"
116+ echo $service_events
117+ exit $deploy_exitcode
118+ fi
You canβt perform that action at this time.
0 commit comments