Skip to content

Commit

Permalink
use setup-oceanbase-ce action
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Jun 5, 2024
1 parent afbf6cb commit 33ea32a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci-oceanbase-ce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()'

0 comments on commit 33ea32a

Please sign in to comment.