Authored by jimi.ji

deploy

... ... @@ -52,8 +52,8 @@
<file leaf-file-name="awsdeploy.sh" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/aws/awsdeploy.sh">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="189">
<caret line="49" column="15" lean-forward="true" selection-start-line="49" selection-start-column="15" selection-end-line="49" selection-end-column="15" />
<state relative-caret-position="217">
<caret line="48" column="58" lean-forward="false" selection-start-line="48" selection-start-column="58" selection-end-line="48" selection-end-column="58" />
<folding />
</state>
</provider>
... ... @@ -659,12 +659,12 @@
<workItem from="1545890694011" duration="11746000" />
<workItem from="1545905663805" duration="1370000" />
<workItem from="1545965888175" duration="20585000" />
<workItem from="1546047561789" duration="10982000" />
<workItem from="1546047561789" duration="11227000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="44683000" />
<option name="totallyTimeSpent" value="44928000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
... ... @@ -1000,8 +1000,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/aws/awsdeploy.sh">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="189">
<caret line="49" column="15" lean-forward="true" selection-start-line="49" selection-start-column="15" selection-end-line="49" selection-end-column="15" />
<state relative-caret-position="217">
<caret line="48" column="58" lean-forward="false" selection-start-line="48" selection-start-column="58" selection-end-line="48" selection-end-column="58" />
<folding />
</state>
</provider>
... ...
... ... @@ -46,12 +46,13 @@ do
SERVICEDEPLOYMENTPENDING=`aws ecs describe-services --cluster ${CLUSTER} --services ${SERVICE_NAME} |jq .services[].deployments[0].pendingCount`
if [ "$SERVICEDEPLOYMENTPENDING" != 0 ] ;then
echo "the pedding count is $SERVICEDEPLOYMENTPENDING"
sleep 10
continue;
fi
EVENTMESSAGE=`aws ecs describe-services --cluster ${CLUSTER} --services ${SERVICE_NAME} |jq .services[].events[0].message`
EVENTMESSAGENORMAL=(service "${SERVICE_NAME}") has reached a steady state
EVENTMESSAGENORMAL="(service "${SERVICE_NAME}") has reached a steady state"
echo "check event result : aws cli is : $EVENTMESSAGE"
echo "check event result : EVENTMESSAGENORMAL cli is : $EVENTMESSAGENORMAL"
if [[ $EVENTMESSAGE =~ $EVENTMESSAGENORMAL ]] ;then
... ...