diff --git a/.github/workflows/ci-oceanbase-ce.yml b/.github/workflows/ci-oceanbase-ce.yml index aa2fdde..78f3701 100644 --- a/.github/workflows/ci-oceanbase-ce.yml +++ b/.github/workflows/ci-oceanbase-ce.yml @@ -19,10 +19,9 @@ jobs: - name: Build docker image run: ./oceanbase-ce/docker_build.sh - name: Start oceanbase-ce container - timeout-minutes: 5 - run: | - docker run --name ob-slim -p 2881:2881 -e MODE=slim -d oceanbase-ce - eval 'while ! docker logs ob-slim | grep -q "boot success!"; do echo "booting..."; sleep 10; done' - echo "boot success!" + uses: oceanbase/setup-oceanbase-ce@v1 + with: + image_name: oceanbase-ce + container_name: ob-slim - name: Test oceanbase-ce container run: docker exec ob-slim obclient -h127.0.0.1 -P2881 -uroot -e 'select version()'