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:
@@ -218,46 +218,43 @@ runs:
|
|||||||
SEARCH: ${{ inputs.search }}
|
SEARCH: ${{ inputs.search }}
|
||||||
run: |
|
run: |
|
||||||
export DEN="$(dirname $(pwd))/warden/bin/warden"
|
export DEN="$(dirname $(pwd))/warden/bin/warden"
|
||||||
|
case "${SEARCH}" in
|
||||||
|
elasticsearch:*)
|
||||||
|
SEARCH_HOST="elasticsearch"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
SEARCH_HOST="opensearch"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo "search host: ${SEARCH_HOST}"
|
||||||
echo "==================================================="
|
echo "==================================================="
|
||||||
docker ps -a
|
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0")
|
||||||
${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0"
|
echo "search status: ${SEARCH_STATUS}"
|
||||||
sleep 10
|
sleep 10
|
||||||
echo "==================================================="
|
echo "==================================================="
|
||||||
docker ps -a
|
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0")
|
||||||
${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0"
|
echo "search status: ${SEARCH_STATUS}"
|
||||||
sleep 10
|
sleep 10
|
||||||
echo "==================================================="
|
echo "==================================================="
|
||||||
docker ps -a
|
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0")
|
||||||
${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0"
|
echo "search status: ${SEARCH_STATUS}"
|
||||||
sleep 10
|
sleep 10
|
||||||
echo "==================================================="
|
echo "==================================================="
|
||||||
docker ps -a
|
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0")
|
||||||
${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0"
|
echo "search status: ${SEARCH_STATUS}"
|
||||||
sleep 10
|
sleep 10
|
||||||
echo "==================================================="
|
echo "==================================================="
|
||||||
docker ps -a
|
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0")
|
||||||
${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0"
|
echo "search status: ${SEARCH_STATUS}"
|
||||||
sleep 10
|
sleep 10
|
||||||
echo "==================================================="
|
echo "==================================================="
|
||||||
docker ps -a
|
SEARCH_STATUS=$(${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0")
|
||||||
${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0"
|
echo "search status: ${SEARCH_STATUS}"
|
||||||
|
|
||||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
|
||||||
${DEN} env exec -T php-fpm bash -c "curl --write-out %{http_code} --silent --output /dev/null http://elasticsearch:9200/_cat/health?h=st; exit 0"
|
|
||||||
|
|
||||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
|
||||||
|
|
||||||
# curl --write-out %{http_code} --silent --output /dev/null http://mageos-elasticsearch-1:9200/_cat/health?h=st
|
# curl --write-out %{http_code} --silent --output /dev/null http://mageos-elasticsearch-1:9200/_cat/health?h=st
|
||||||
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||||
# export DEN="$(dirname $(pwd))/warden/bin/warden"
|
# export DEN="$(dirname $(pwd))/warden/bin/warden"
|
||||||
# case "${SEARCH}" in
|
|
||||||
# elasticsearch:*)
|
|
||||||
# SEARCH_HOST="elasticsearch"
|
|
||||||
# ;;
|
|
||||||
# *)
|
|
||||||
# SEARCH_HOST="opensearch"
|
|
||||||
# ;;
|
|
||||||
# esac
|
|
||||||
|
|
||||||
# # TODO
|
# # TODO
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user