Skip to content

Commit

Permalink
fix(ci): wait condition for OpenSearch containers
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven committed Sep 12, 2023
1 parent 7ed6890 commit 075f21b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ jobs:
- versionTitle: ElasticSearch 7.17.0
dockerCommand: |
docker run -d --rm --name es -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.17.0
readyCondition: GREEN
- versionTitle: OpenSearch 1.3.12
dockerCommand: |
docker run --rm --name es -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9600 -e "discovery.type=single-node" -e DISABLE_SECURITY_PLUGIN="true" -e DISABLE_INSTALL_DEMO_CONFIG="true" opensearchproject/opensearch:1.3.12
readyCondition: Performing move cluster state metadata.
- versionTitle: OpenSearch 2.9.0
dockerCommand: |
docker run --rm --name es -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9600 -e "discovery.type=single-node" -e DISABLE_SECURITY_PLUGIN="true" -e DISABLE_INSTALL_DEMO_CONFIG="true" opensearchproject/opensearch:2.9.0
readyCondition: Performing move cluster state metadata.
steps:
- name: git checkout
uses: actions/checkout@v3
Expand All @@ -32,7 +35,7 @@ jobs:
- name: Launch docker
run: |
${{ matrix.dockerCommand }}
until docker logs es | grep GREEN
until docker logs es | grep '${{ matrix.readyCondition }}'
do
sleep 1
done
Expand Down

0 comments on commit 075f21b

Please sign in to comment.