mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
dev: work on action
This commit is contained in:
@@ -226,7 +226,18 @@ runs:
|
|||||||
SEARCH_HOST="opensearch"
|
SEARCH_HOST="opensearch"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo "search host: ${SEARCH_HOST}"
|
HEALTHY=1
|
||||||
|
for ((i=1; i<=24; i++)); do
|
||||||
|
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://${SEARCH_HOST}:9200/_cat/health?h=st; exit 0")
|
||||||
|
echo "search status: ${SEARCH_STATUS}"
|
||||||
|
if [ ${SEARCH_STATUS} -eq "200" ]; then
|
||||||
|
HEALTHY=0
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
echo "HEALTHY: ${HEALTHY}"
|
||||||
|
exit ${HEALTHY}
|
||||||
echo "==================================================="
|
echo "==================================================="
|
||||||
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://${SEARCH_HOST}:9200/_cat/health?h=st; exit 0")
|
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://${SEARCH_HOST}:9200/_cat/health?h=st; exit 0")
|
||||||
echo "search status: ${SEARCH_STATUS}"
|
echo "search status: ${SEARCH_STATUS}"
|
||||||
|
|||||||
Reference in New Issue
Block a user